forked from OnionUI/Onion
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 824 Bytes
/
Copy pathdocs-deploy.yml
File metadata and controls
33 lines (31 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy Docs to GitHub Pages
on:
push:
branches: [main]
paths:
- 'website/**/*'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'website'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
cache-dependency-path: '**/yarn.lock'
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Deploy to GitHub Pages
env:
USE_SSH: true
run: |
git config --global user.email "44569252+Aemiii91@users.noreply.github.com"
git config --global user.name "Aemiii91"
yarn install --frozen-lockfile
yarn deploy