Skip to content

chore: cicd 改为新版 action 方式 #1

chore: cicd 改为新版 action 方式

chore: cicd 改为新版 action 方式 #1

Workflow file for this run

# name 可以自定义
name: Deploy GitHub Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Build
run: npm install && npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/.vitepress/dist