feat: update ci config

This commit is contained in:
cqh963852 committed 2025-07-17 00:47:02 +08:00
1 parent 41578fea01
commit c3455743bf
1 file changed
+16 -15
+16 -15
View File
@@ -5,7 +5,7 @@ on:
branches: [main] branches: [main]
jobs: jobs:
deploy: build:
name: Deploy to GitHub Pages name: Deploy to GitHub Pages
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -19,18 +19,19 @@ jobs:
run: | run: |
yarn install --immutable yarn install --immutable
yarn build yarn build
- name: Upload static files as artifact
# Popular action to deploy to GitHub Pages: id: deployment
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus uses: actions/upload-pages-artifact@v3
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} path: build
# Build output to publish to the `gh-pages` branch:
publish_dir: ./build deploy:
# Assign commit authorship to the official GH-Actions bot for deploys to `gh-pages` branch: environment:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212 name: github-pages
# The GH actions bot is used by default if you didn't specify the two fields. url: ${{ steps.deployment.outputs.page_url }}
# You can swap them out with your own user credentials. runs-on: ubuntu-latest
user_name: github-actions[bot] needs: build
user_email: 41898282+github-actions[bot]@users.noreply.github.com steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4