From cc1bf59dab60a50c750c6d7a9f94db6705b90f3c Mon Sep 17 00:00:00 2001 From: ehab-hassan Date: Wed, 20 Jul 2022 23:06:58 +0200 Subject: [PATCH] test2 --- .github/workflows/action.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 181fd41a3..f0b34c176 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -1,18 +1,17 @@ -name: Zola on GitHub Pages - -on: - push: - branches: - - development - +# On every push this script is executed +on: push +name: Build and deploy GH Pages jobs: build: - name: Publish site runs-on: ubuntu-latest + if: github.ref == 'refs/heads/development' steps: - - name: Checkout development - uses: actions/checkout@v3.0.0 - - name: Build and deploy - uses: shalzz/zola-deploy-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + - name: checkout + uses: actions/checkout@v2 + - name: build_and_deploy + uses: shalzz/zola-deploy-action@v0.14.1 + env: + # Target branch + PAGES_BRANCH: gh-pages + # Provide personal access token + TOKEN: ${{ secrets.TOKEN }} \ No newline at end of file