From dd3a1476f6ba0a11a8a450cd3a1231ba0ce25c96 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 24 Jun 2026 15:01:07 +0800 Subject: Add GitHub Pages deployment workflow --- .github/workflows/page.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/page.yml (limited to '.github') diff --git a/.github/workflows/page.yml b/.github/workflows/page.yml new file mode 100644 index 0000000..6366262 --- /dev/null +++ b/.github/workflows/page.yml @@ -0,0 +1,35 @@ +name: Deploy static content to Pages + +on: + push: + branches: ["main"] + + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +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@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: "." + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v5 -- cgit