Skip to content

Commit 7a0695d

Browse files
committed
use original zola build action
1 parent c633729 commit 7a0695d

1 file changed

Lines changed: 5 additions & 37 deletions

File tree

.github/workflows/zola.yml

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

88
jobs:
9-
build:
9+
build-and-deploy:
1010
name: Publish site
1111
runs-on: ubuntu-latest
1212
permissions:
@@ -26,39 +26,7 @@ jobs:
2626
- name: Build Tailwind CSS
2727
run: npm run tailwind:build
2828

29-
- name: Install Zola
30-
run: |
31-
ZOLA_VERSION="0.22.1"
32-
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
33-
sudo mv zola /usr/local/bin/
34-
35-
- name: Build site
36-
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
49-
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
29+
- name: Build and deploy
30+
uses: shalzz/zola-deploy-action@v0.22.1
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)