name: Build and Deploy Docs on: [push] jobs: build-and-deploy: if: github.repository == 'anghunk/cwd' runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@master with: fetch-depth: 0 - name: vuepress-deploy uses: jenkey2011/vuepress-deploy@master env: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} TARGET_REPO: anghunk/cwd TARGET_BRANCH: gh-pages BUILD_SCRIPT: yarn --cwd docs && yarn --cwd docs build BUILD_DIR: docs/.vitepress/dist/