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 :
9+ build-and-deploy :
1010 name : Publish site
1111 runs-on : ubuntu-latest
1212 permissions :
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 }}
You can’t perform that action at this time.
0 commit comments