Skip to content

Update deploy.yml

Update deploy.yml #16

Workflow file for this run

name: 部署
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- run: npm run docs:build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs/.vitepress/dist
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: docs/.vitepress/dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}