From deb0eff2ac1bd2b8d0c0a02469843de6db16b22d Mon Sep 17 00:00:00 2001 From: bowen Date: Fri, 25 Mar 2022 15:12:11 +0800 Subject: [PATCH] Revert "ci: debug" This reverts commit bccaf1d9f9edf75deb4f9fae59e036c8c7b054b8. --- .github/workflows/gh-pages.yml | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6e3e48e..2f18882 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -8,31 +8,47 @@ on: - v** jobs: - setup: + build-and-deploy: + # concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 + - name: Set up node16 uses: actions/setup-node@v2 with: node-version: '16' cache: 'yarn' - - run: yarn - test: - needs: setup - steps: + + # - name: Get yarn cache directory path + # id: yarn-cache-dir-path + # run: | + # echo "::set-output name=dir::$(yarn cache dir)" + # echo "::set-output name=version::$(yarn -v)" + + # - uses: actions/cache@v2 + # id: yarn-cache + # name: Cache + # with: + # path: | + # **/node_modules + # ${{ steps.yarn-cache-dir-path.outputs.dir }} + # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + # restore-keys: | + # ${{ runner.os }}-yarn- + + - run: yarn + # - run: yarn run coveralls - run: yarn run test + - run: yarn run build:docs + - name: Coveralls uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - build-and-deploy: - needs: setup - steps: - - run: yarn run build:docs - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4.2.5 with: