yml配置
name: xxx
on:
release:
types: [created]
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- run: npm test
- run: npm run build
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: master
folder: dist
部署中128错误,需要在setting->general中修改设置
Error: The deploy step encountered an error: The process ‘/usr/bin/git’ failed with exit code 128 ❌