From 01a6ce1d6040f776dbb68ac7e03ec4d8185b010d Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Thu, 19 Sep 2024 09:54:46 +1000 Subject: [PATCH] Update pages.yml Some dependencies were out of date --- .github/workflows/pages.yml | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 8363462..4e07da3 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,5 +1,4 @@ -# Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages +name: Build and deploy the dev website to Github Pages on: # Runs on pushes targeting the docs branch @@ -15,28 +14,33 @@ permissions: pages: write id-token: write -# Allow one concurrent deployment concurrency: group: "pages" - cancel-in-progress: true + cancel-in-progress: false jobs: - # Single deploy job since we're just deploying + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Build with Jekyll + uses: actions/jekyll-build-pages@v1 + with: + source: ./ + destination: ./_site + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest + needs: build steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Pages - uses: actions/configure-pages@v2 - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - # Upload entire repository - path: '.' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4