File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 6868 - uses : actions/upload-artifact@v3
6969 with :
7070 name : docs-zip
71- path : ./docs.zip
71+ path : ./site/ docs.zip
7272 - name : Deploy to Netlify
7373 uses : nwtgck/actions-netlify@v1.1.5
7474 with :
Original file line number Diff line number Diff line change @@ -11,16 +11,21 @@ jobs:
1111 runs-on : ubuntu-20.04
1212 steps :
1313 - uses : actions/checkout@v3.1.0
14+ - name : Clean site
15+ run : |
16+ rm -rf ./site
17+ mkdir ./site
1418 - name : Download Artifact Docs
1519 uses : dawidd6/action-download-artifact@v2.24.2
1620 with :
1721 github_token : ${{ secrets.GITHUB_TOKEN }}
1822 workflow : build-docs.yml
1923 run_id : ${{ github.event.workflow_run.id }}
2024 name : docs-zip
25+ path : ./site/
2126 - name : Unzip docs
2227 run : |
23- rm -rf ./site
28+ cd ./site
2429 unzip docs.zip
2530 rm -f docs.zip
2631 - name : Deploy to Netlify
Original file line number Diff line number Diff line change 33set -x
44set -e
55
6+ cd ./site
7+
68if [ -f docs.zip ]; then
79 rm -rf docs.zip
810fi
9- zip -r docs.zip ./site
11+ zip -r docs.zip ./
You can’t perform that action at this time.
0 commit comments