From 395e3fc59c6dcfcfb5fb22251690628f8a69456a Mon Sep 17 00:00:00 2001 From: John Wright Date: Mon, 13 Feb 2023 14:45:06 +0000 Subject: [PATCH 1/2] ci: upload docs when submitting pr --- .github/workflows/pull-request.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index ffbfa0931..1928dd154 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -48,3 +48,12 @@ jobs: - name: Test run: yarn test + + - name: Build Docs + run: yarn build:docs + + - name: Upload Docs + uses: actions/upload-artifact@v3 + with: + name: docs + path: docs From 446d53b3c2d4f6fb1581ad0dfe9750b7250b50bd Mon Sep 17 00:00:00 2001 From: John Wright Date: Mon, 13 Feb 2023 14:51:26 +0000 Subject: [PATCH 2/2] ci: upload docs when submitting pr --- .github/workflows/pull-request-docs.yml | 21 +++++++++++++++++++++ .github/workflows/pull-request.yml | 10 +--------- 2 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/pull-request-docs.yml diff --git a/.github/workflows/pull-request-docs.yml b/.github/workflows/pull-request-docs.yml new file mode 100644 index 000000000..e72831d98 --- /dev/null +++ b/.github/workflows/pull-request-docs.yml @@ -0,0 +1,21 @@ +name: Pull Request + +on: + pull_request: + paths: [src/**/*.ts] + types: [opened, synchronize] + +jobs: + test: + name: Docs Artifact + runs-on: ubuntu-latest + if: github.actor != 'renovate[bot]' || github.actor != 'dependabot[bot]' + steps: + - name: Build Docs + run: yarn build:docs + + - name: Upload Docs + uses: actions/upload-artifact@v3 + with: + name: docs + path: docs diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 1928dd154..9c73d2564 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -25,6 +25,7 @@ jobs: uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} + id: node uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} @@ -48,12 +49,3 @@ jobs: - name: Test run: yarn test - - - name: Build Docs - run: yarn build:docs - - - name: Upload Docs - uses: actions/upload-artifact@v3 - with: - name: docs - path: docs