Skip to content

chore: update deploy.yml #3

chore: update deploy.yml

chore: update deploy.yml #3

name: Deploy to GitHub Pages
on:
push:
branches:
- main # 你可以根据需要更改为你想要部署的分支
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set up Node.js
uses: actions/setup-node@master
with:
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: JamesIves/github-pages-deploy-action@master
en:

Check failure on line 26 in .github/workflows/deploy-to-gh-pages.yml

View workflow run for this annotation

GitHub Actions / Deploy to GitHub Pages

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-to-gh-pages.yml (Line: 26, Col: 9): Unexpected value 'en'
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }},
BRANCH: gh-pages,
FOLDER: dist