diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-24 15:01:07 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-24 15:01:07 +0800 |
| commit | dd3a1476f6ba0a11a8a450cd3a1231ba0ce25c96 (patch) | |
| tree | d76e335f4181e37692955e4ccfc5fe9ba0341429 /.github | |
| parent | 7cae57eedeb3a3bca0525faaa139e3df96d0456a (diff) | |
Add GitHub Pages deployment workflow
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/page.yml | 35 |
1 files changed, 35 insertions, 0 deletions
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 |
