summaryrefslogtreecommitdiff
path: root/.github/workflows/zola.yml
blob: 54714052639d7838117b520af379777fb1c744e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# On every push this script is executed
on: push
name: Build and deploy GH Pages
jobs:
  build:
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/master'
    steps:
      - name: checkout
        uses: actions/checkout@v4
      - name: build_and_deploy
        uses: shalzz/zola-deploy-action@v0.19.1
        env:
          # Target branch
          PAGES_BRANCH: gh-pages
          # use the automatic token
          TOKEN: ${{ secrets.GITHUB_TOKEN }}