back version

This commit is contained in:
Zuoling Rong
2025-02-02 20:03:29 +08:00
parent 15b2b9a216
commit 2b24915c9a
2 changed files with 13 additions and 30 deletions

View File

@@ -6,22 +6,11 @@ on:
- main
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
# 允许一个并发部署
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build-and-deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
@@ -38,14 +27,9 @@ jobs:
- name: Generate site
run: node generator.js
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .
branch: gh-pages
clean: true