File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 5656 echo "Zola version: $(./zola --version)"
5757 - name : Zola build
5858 run : ./zola build
59- - name : Deploy
60- if : github.ref == 'refs/heads/source'
61- uses : crazy-max/ghaction-github-pages@v1
59+ - name : Upload GitHub Pages artifact
60+ uses : actions/upload-pages-artifact@v1
6261 with :
63- build_dir : public
64- target_branch : master
62+ path : public
63+
64+ pages :
65+ needs : zola
66+ permissions :
67+ pages : write
68+ id-token : write
69+ environment :
70+ name : github-pages
71+ url : ${{ steps.deployment.outputs.page_url }}
72+ runs-on : ubuntu-latest
73+ if : format('refs/heads/{0}', github.event.repository.default_branch) == github.ref
74+ steps :
75+ - name : Deploy to GitHub Pages
76+ id : deployment
77+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments