From 9041423166cfe4728fe35706891dc851a610bdbe Mon Sep 17 00:00:00 2001 From: Dehan Jaco Lamprecht Date: Mon, 25 Mar 2024 23:31:16 +0200 Subject: [PATCH] Build and deploy action --- .github/workflows/build.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..5100466 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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.18.0 + 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 }} \ No newline at end of file