Skip to content

Commit 36819d9

Browse files
committed
ives deploy
1 parent 7a0695d commit 36819d9

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

.github/workflows/zola.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
- main
77

88
jobs:
9-
build-and-deploy:
9+
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
@@ -26,7 +28,19 @@ jobs:
2628
- name: Build Tailwind CSS
2729
run: npm run tailwind:build
2830

29-
- name: Build and deploy
30-
uses: shalzz/zola-deploy-action@v0.22.1
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
- name: Install Zola
32+
run: |
33+
ZOLA_VERSION="0.22.1"
34+
curl -sL "https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz" | tar xz
35+
sudo mv zola /usr/local/bin/
36+
37+
- name: Build site
38+
run: zola build
39+
40+
- name: Deploy to GitHub pages 🚀
41+
if: github.event_name != 'pull_request'
42+
uses: JamesIves/github-pages-deploy-action@v4.5.0
43+
with:
44+
clean: false
45+
branch: gh-pages
46+
folder: public

0 commit comments

Comments
 (0)