From 0f6d7a8d4b4d48cd323e19c34d12563c94c74a13 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sat, 18 Jun 2022 10:19:19 -0400 Subject: [PATCH] GitHub Pages --- .github/workflows/publish.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..002f5b6 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,29 @@ + +on: + push: + branches: + - master + +name: Build and publish site +jobs: + build-bundle-deploy: + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v2 + + - name: Build + uses: TonySpegel/zola-build-action@v1 + env: + CONFIG_FILE: "config.toml" + + - name: Deploy to GitHub Pages + if: success() + uses: crazy-max/ghaction-github-pages@v2 + with: + target_branch: gh-pages + build_dir: public + fqdn: va3zza.com + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file