From c8e4b8a661590d2783dc3ab6f16864c58320e5ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=B6rcs=C3=B6k=20Bal=C3=A1zs=20R=C3=B3bert?= Date: Sun, 4 Aug 2024 12:17:17 +0200 Subject: [PATCH] Update github-actions-build-zola-on-push.yml --- .../github-actions-build-zola-on-push.yml | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/github-actions-build-zola-on-push.yml b/.github/workflows/github-actions-build-zola-on-push.yml index 6ed0b0c..fa3aa7e 100644 --- a/.github/workflows/github-actions-build-zola-on-push.yml +++ b/.github/workflows/github-actions-build-zola-on-push.yml @@ -1,19 +1,18 @@ -# On every push this script is executed -on: push -name: Build and deploy GH Pages +name: Zola on GitHub Pages + +on: + push: + branches: + - main + jobs: build: + name: Publish site runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' steps: - - name: checkout - uses: actions/checkout@v4 - - name: build_and_deploy - uses: shalzz/zola-deploy-action@v0.17.2 - env: - # Target branch - PAGES_BRANCH: gh-pages - # Provide personal access token - # TOKEN: ${{ secrets.TOKEN }} - # Or if publishing to the same repo, use the automatic token - TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout main + uses: actions/checkout@v4 + - name: Build and deploy + uses: shalzz/zola-deploy-action@v0.19.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}