File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 1- name : GitHub pages
1+ name : github- pages
22
33on :
44 push :
55 branches :
66 - master
77
8+ # Allows manual runs from the Actions tab
9+ workflow_dispatch :
10+
811jobs :
9- deploy :
12+ build-and- deploy :
1013 runs-on : ubuntu-20.04
1114 permissions :
1215 contents : write
1316 concurrency :
1417 group : ${{ github.workflow }}-${{ github.ref }}
1518 steps :
16- - uses : actions/checkout@v3
17- with :
18- fetch-depth : 0
19+ - name : Checkout Repo
20+ uses : actions/checkout@v3
1921
20- - name : Install Node
22+ - name : Install NodeJS
2123 uses : actions/setup-node@v3
2224 with :
23- node-version : ' 14.x '
25+ node-version : ' 14'
2426
25- - name : Install Packages
26- run : npm ci
27+ - name : Build Static Files
28+ run : |
29+ npm ci
30+ npm run build
2731
28- - name : Build
29- run : npm run build
32+ - name : Build Artifact
33+ uses : actions/jekyll- build-pages@v1
3034
31- - name : Deploy
32- uses : peaceiris/actions-gh-pages@v3
33- if : ${{ github.ref == 'refs/heads/master' }}
34- with :
35- github_token : ${{ secrets.GITHUB_TOKEN }}
36- publish_dir : ./
35+ - name : Upload Artifact
36+ uses : actions/upload-pages-artifact@v0
You can’t perform that action at this time.
0 commit comments