From 7a4c153fe1fc8d476adfc8589bca7cea1a91117d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar?= Date: Fri, 14 Apr 2023 16:25:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20create=20zolatogithubpages.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/zolatogithubpages.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/zolatogithubpages.yml diff --git a/.github/workflows/zolatogithubpages.yml b/.github/workflows/zolatogithubpages.yml new file mode 100644 index 0000000..6ef6b12 --- /dev/null +++ b/.github/workflows/zolatogithubpages.yml @@ -0,0 +1,19 @@ +# 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/main' + steps: + - name: checkout + uses: actions/checkout@v3.0.0 + - 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 }}