diff --git a/.github/workflows/vuepress-deploy.yml b/.github/workflows/vuepress-deploy.yml new file mode 100644 index 0000000..02d6f5d --- /dev/null +++ b/.github/workflows/vuepress-deploy.yml @@ -0,0 +1,29 @@ +name: Vuepress Deploy +on: + push: + branches: + - master +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-node@v2 + with: + node-verions: '14' + + - name: Checkout + uses: actions/checkout@master + + - name: Install Dependencies + run: npm install + + - name: Webpack build + run: npm run build + + - name: vuepress-deploy + uses: jenkey2011/vuepress-deploy@master + env: + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + TARGET_BRANCH: gh-pages + BUILD_SCRIPT: npm install && npm run docs:build + BUILD_DIR: docs/.vuepress/dist/