Skip to content

Commit a1731e9

Browse files
authored
Merge pull request #93 from kbvernon/gha2
fix: use jamesives deploy action
2 parents c633729 + 36819d9 commit a1731e9

1 file changed

Lines changed: 9 additions & 27 deletions

File tree

.github/workflows/zola.yml

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ jobs:
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

0 commit comments

Comments
 (0)