diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 571fe1b..16778a7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,30 +10,14 @@ jobs: deploy: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@master - - name: Setup Node - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Get yarn cache - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" - - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: ${{ steps.yarn-cache.outputs.dir }} - key: runner.os−yarn−{{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - run: yarn install --frozen-lockfile - - run: yarn docs:build - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - if: github.ref == 'refs/heads/main' - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: docs/.vuepress/dist + - name: vuepress-deploy + uses: jenkey2011/vuepress-deploy@master + env: + ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TARGET_REPO: Huauauaa/learn-mdn + TARGET_BRANCH: foo + BUILD_SCRIPT: yarn && yarn docs:build + BUILD_DIR: docs/.vuepress/dist