File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change 66 - master
77
88jobs :
9- deploy :
9+ build-and- deploy :
1010 runs-on : ubuntu-20.04
1111 permissions :
1212 contents : write
1313 concurrency :
1414 group : ${{ github.workflow }}-${{ github.ref }}
1515 steps :
16- - uses : actions/checkout@v3
17- with :
18- fetch-depth : 0 # Fetch all history for .GitInfo and .Lastmod
16+ - name : Checkout 🛎️
17+ uses : actions/checkout@v3
1918
2019 - name : Install Node
2120 uses : actions/setup-node@v3
2221 with :
2322 node-version : ' 14.x'
2423
25- - name : Install Packages
26- run : npm ci
24+ - name : Install Packages and Build 🔧
25+ run : |
26+ npm ci
27+ npm run build
2728
28- - name : Build
29- run : npm run build
29+ - name : Install rsync 📚
30+ run : |
31+ apt-get update && apt-get install -y rsync
3032
31- - name : Deploy
32- uses : peaceiris/actions-gh-pages@v3
33- if : ${{ github.ref == 'refs/heads/master' }}
33+ - name : Deploy 🚀
34+ uses : JamesIves/github-pages-deploy-action@v4
3435 with :
35- github_token : ${{ secrets.GITHUB_TOKEN }}
36- publish_dir : ./build
37- keep_files : true
36+ folder : build
You can’t perform that action at this time.
0 commit comments