From 99c1013893671bbe068f14ad358624423cffac83 Mon Sep 17 00:00:00 2001 From: Mathias <85846946+mathias-aparicio@users.noreply.github.com> Date: Sun, 22 Sep 2024 17:06:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Create=20zola.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/zola.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/zola.yml diff --git a/.github/workflows/zola.yml b/.github/workflows/zola.yml new file mode 100644 index 0000000..810e523 --- /dev/null +++ b/.github/workflows/zola.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@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 }}