From 513769f3716c617059ab9dbacae8a692d1a04912 Mon Sep 17 00:00:00 2001 From: 0xarchit <0xarchit@gmail.com> Date: Sun, 10 May 2026 13:45:05 +0530 Subject: [PATCH] ci(web): add github pages deployment workflow - Create workflow to automatically deploy website/ directory to GitHub Pages - Triggers on pushes to main modifying website/** --- .github/workflows/pages.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..2a27159 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,42 @@ +name: Deploy Website to GitHub Pages + +on: + push: + branches: + - main + paths: + - 'website/**' + workflow_dispatch: # Allow manual triggering + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + 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: './website' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4