From 2b2d0654e7a5ab58f7b5bba8c9d32dbd9181a920 Mon Sep 17 00:00:00 2001 From: Stijn van Houwelingen Date: Sat, 26 Aug 2023 19:41:33 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6ef6b12..5ebc0fd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,18 +2,14 @@ on: push name: Build and deploy GH Pages jobs: - build: + build_and_deploy: runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' steps: - - name: checkout + - name: Checkout main uses: actions/checkout@v3.0.0 - - name: build_and_deploy + - 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 }} + GITHUB_TOKEN: ${{ secrets.TOKEN }}