File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -111,10 +111,17 @@ jobs:
111111 git commit -m "chore: update committer cache [skip ci]" || echo "No changes to commit"
112112 git push origin docs
113113
114+ - name : Compress site for upload
115+ run : |
116+ tar -czf site.tar.gz -C site .
117+ ls -lh site.tar.gz
118+
114119 - name : Upload artifact
115- uses : actions/upload-pages- artifact@v3
120+ uses : actions/upload-artifact@v4
116121 with :
117- path : ./site
122+ name : github-pages
123+ path : site.tar.gz
124+ retention-days : 1
118125
119126 deploy :
120127 needs : build
@@ -126,6 +133,21 @@ jobs:
126133 name : github_pages
127134 url : ${{ steps.deployment.outputs.page_url }}
128135 steps :
136+ - name : Download artifact
137+ uses : actions/download-artifact@v4
138+ with :
139+ name : github-pages
140+
141+ - name : Extract site
142+ run : |
143+ mkdir -p site
144+ tar -xzf site.tar.gz -C site
145+
146+ - name : Upload to GitHub Pages
147+ uses : actions/upload-pages-artifact@v3
148+ with :
149+ path : ./site
150+
129151 - name : Deploy to GitHub Pages
130152 id : deployment
131153 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments