From 397cc50d0e78f206859152cf55602b070646591f Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 13 Aug 2025 13:45:50 +0000 Subject: [PATCH] ci: add GitHub Pages workflow to publish docs/ Publishes only docs/ via actions/deploy-pages with proper permissions and concurrency. Keeps other pending changes uncommitted. --- .github/workflows/gh-pages.yml | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..43447a8 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,44 @@ +name: Deploy Docs to GitHub Pages + +on: + push: + branches: [ main ] + paths: + - 'docs/**' + - '.github/workflows/gh-pages.yml' + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: 'pages' + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Pages + uses: actions/configure-pages@v5 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: docs + + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4