chore: add github workflow

This commit is contained in:
DIYgod 2022-08-15 22:28:28 +01:00
parent d1c32f66db
commit 064dccdff3
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
1 changed files with 18 additions and 0 deletions

18
.github/workflows/vuepress-deploy.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Build and Deploy
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: vuepress-deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
TARGET_REPO: DIYgod/DPlayer
TARGET_BRANCH: gh-pages
BUILD_SCRIPT: pnpm i && pnpm docs:build
BUILD_DIR: docs/.vuepress/dist
CNAME: dplayer.js.org