From a82b1c5f08b7b8d60c795376f1bd934627a70366 Mon Sep 17 00:00:00 2001 From: Andre Nogueira Date: Mon, 25 May 2026 17:03:17 +0100 Subject: [PATCH] ci: deploy hashpad to GitHub Pages on push to main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a workflow that stages the static HTML/asset files into _site/ and publishes to GitHub Pages. No build step needed — hashpad is plain HTML with no framework. CNAME pins the subdomain hashpad.techquests.dev. Dockerfile, Caddyfile, and docker-compose.yml are intentionally excluded from the deploy artifact so only the actual site files are served. Signed-off-by: Andre Nogueira --- .github/workflows/deploy-pages.yml | 40 ++++++++++++++++++++++++++++++ CNAME | 1 + 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/deploy-pages.yml create mode 100644 CNAME diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml new file mode 100644 index 0000000..880c430 --- /dev/null +++ b/.github/workflows/deploy-pages.yml @@ -0,0 +1,40 @@ +name: Deploy Pages + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - name: Stage site files + run: | + mkdir _site + cp index.html 404.html qr.html manifest.json CNAME _site/ + cp favicon.ico favicon.png icon.png icon-512.png icon.svg _site/ + - uses: actions/configure-pages@v5 + - uses: actions/upload-pages-artifact@v3 + with: + path: _site + + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v4 diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..3d7725b --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +hashpad.techquests.dev