From 62ec6dc46c9472cdcd5d411c0353ee9f905ce20b Mon Sep 17 00:00:00 2001 From: Russell Brown Date: Mon, 28 Oct 2024 16:11:17 +0000 Subject: [PATCH 1/3] Add GitHub Actions workflow to deploy Zola site --- .github/workflows/deploy.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..e69de29 From 976e9c5a5f244dda69ef7842174e8d90db8fa2be Mon Sep 17 00:00:00 2001 From: Russell Brown Date: Mon, 28 Oct 2024 16:12:03 +0000 Subject: [PATCH 2/3] With file contents this time --- .github/workflows/deploy.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e69de29..2c4d00b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -0,0 +1,30 @@ +# .github/workflows/deploy.yml +name: Deploy Zola site to GitHub Pages + +on: + push: + branches: + - main # Triggers when pushing to main branch + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - name: Check out the repository + uses: actions/checkout@v3 + + - name: Install Zola + run: | + curl -sSf https://github.com/getzola/zola/releases/download/v0.17.2/zola-v0.17.2-x86_64-unknown-linux-gnu.tar.gz -L -o zola.tar.gz + tar -xzf zola.tar.gz -C /usr/local/bin + + - name: Build the Zola site + run: zola build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public + publish_branch: gh-pages From c2e2f035b214b4f38a4c75cfd43991f3a6171f31 Mon Sep 17 00:00:00 2001 From: Russell Brown Date: Mon, 28 Oct 2024 16:13:05 +0000 Subject: [PATCH 3/3] version --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2c4d00b..bc0422c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,7 +16,7 @@ jobs: - name: Install Zola run: | - curl -sSf https://github.com/getzola/zola/releases/download/v0.17.2/zola-v0.17.2-x86_64-unknown-linux-gnu.tar.gz -L -o zola.tar.gz + curl -sSf https://github.com/getzola/zola/releases/download/v0.19.2/zola-v0.17.2-x86_64-unknown-linux-gnu.tar.gz -L -o zola.tar.gz tar -xzf zola.tar.gz -C /usr/local/bin - name: Build the Zola site