Skip to content

Commit

Permalink
chore: update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gongph committed Nov 24, 2024
1 parent 68fb686 commit d3656b5
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/deploy-to-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,24 @@ on:
- main # 你可以根据需要更改为你想要部署的分支

jobs:
deploy:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@master
- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@master
with:
node-version: "22.x"
node-version: 22.9.0
- name: Install pnpm
run: npm i pnpm -g
- name: Install dependencies
run: pnpm i
- name: Build
run: pnpm build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
publish_dir: ./dist
uses: JamesIves/github-pages-deploy-action@master
en:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }},
BRANCH: gh-pages,
FOLDER: dist

0 comments on commit d3656b5

Please sign in to comment.