File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - main
77
88jobs :
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
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
You can’t perform that action at this time.
0 commit comments