From 1beda3ba64c89dfd4b3b30a0e5f44d7aa8f41253 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Mon, 26 Jan 2026 05:36:09 +1000 Subject: [PATCH] Create deploy.yml --- .github/workflows/deploy.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..edf4f37d --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,28 @@ +name: Deploy static site to GitHub Pages + +on: + push: + branches: + - main + +jobs: + deployment: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v6 + - name: Setup Node.js (or other environment if needed) + uses: actions/setup-node@v6 + with: + node-version: 24 + - name: Install dependencies and build site + run: | + npm install + npm run build + - name: Upload artifact + uses: actions/upload-pages-artifact@v4 + with: + path: '_site' # The directory that contains the deployable files + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4