From 86ed1d075f6fc216d3cd22437a901194ed2f8f70 Mon Sep 17 00:00:00 2001 From: whitelonng Date: Mon, 13 Jul 2026 23:55:18 +0800 Subject: [PATCH] ci: deploy website to GitHub Pages --- .github/workflows/deploy-website.yml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deploy-website.yml diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml new file mode 100644 index 0000000..7897d61 --- /dev/null +++ b/.github/workflows/deploy-website.yml @@ -0,0 +1,31 @@ +name: Deploy website + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: github-pages + cancel-in-progress: true + +jobs: + deploy: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/checkout@v6 + - uses: actions/configure-pages@v5 + - uses: actions/upload-pages-artifact@v4 + with: + path: website + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4