Browse Source

chore: add github workflow

DIYgod 2 years ago
parent
commit
064dccdff3
1 changed files with 18 additions and 0 deletions
  1. 18 0
      .github/workflows/vuepress-deploy.yml

+ 18 - 0
.github/workflows/vuepress-deploy.yml

@@ -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