From 064dccdff32d5ab7934b648fd505dd9ca023c2d4 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 15 Aug 2022 22:28:28 +0100 Subject: [PATCH] chore: add github workflow --- .github/workflows/vuepress-deploy.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/vuepress-deploy.yml diff --git a/.github/workflows/vuepress-deploy.yml b/.github/workflows/vuepress-deploy.yml new file mode 100644 index 0000000..06c2fec --- /dev/null +++ b/.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