File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 build :
1010 name : Publish site
1111 runs-on : ubuntu-latest
12+
1213 permissions :
1314 contents : write
15+
1416 steps :
1517 - name : Checkout main
1618 uses : actions/checkout@v6
@@ -34,31 +36,11 @@ jobs:
3436
3537 - name : Build site
3638 run : zola build
37-
38- - name : Setup Pages
39- uses : actions/configure-pages@v6
40-
41- - name : Fix permissions
42- run : |
43- chmod -c -R +rX "public" | while read line; do
44- echo "::warning title=Invalid file permissions automatically fixed::$line"
45- done
46-
47- - name : Upload artifact
48- uses : actions/upload-pages-artifact@v5
39+
40+ - name : Deploy to GitHub pages 🚀
41+ if : github.event_name != 'pull_request'
42+ uses : JamesIves/github-pages-deploy-action@v4.5.0
4943 with :
50- path : public
51-
52- deploy :
53- needs : build
54- runs-on : ubuntu-latest
55- permissions :
56- pages : write
57- id-token : write
58- environment :
59- name : github-pages
60- url : ${{ steps.deployment.outputs.page_url }}
61- steps :
62- - name : Deploy to GitHub Pages
63- id : deployment
64- uses : actions/deploy-pages@v5
44+ clean : false
45+ branch : gh-pages
46+ folder : public
You can’t perform that action at this time.
0 commit comments