From 0177eeb43722e2bacb401a5bdd254498a96fb345 Mon Sep 17 00:00:00 2001 From: Mark Battistella Date: Thu, 2 May 2024 21:31:19 +1000 Subject: [PATCH] Create static-site.yml --- .github/workflows/static-site.yml | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/static-site.yml diff --git a/.github/workflows/static-site.yml b/.github/workflows/static-site.yml new file mode 100644 index 0000000..3f9ec50 --- /dev/null +++ b/.github/workflows/static-site.yml @@ -0,0 +1,42 @@ +name: Deploy website + +on: + workflow_dispatch: + push: + branches: + - main + +concurrency: + group: "pages" + cancel-in-progress: true + +permissions: + contents: read + pages: write + id-token: write + +jobs: + + deploy: + name: Deploy the website + runs-on: ubuntu-latest + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: './Documentation' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4