From 0c1d6a66f3e06522029be12c7b01918754ee718c Mon Sep 17 00:00:00 2001 From: Daniel Rauf Date: Thu, 1 Jun 2023 14:02:43 +0200 Subject: [PATCH] Merge jobs into one --- .github/workflows/nodejs.yml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 51dce4f..8c6b6e6 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -9,8 +9,7 @@ on: - main jobs: - test: - + build: runs-on: ubuntu-latest container: image: mcr.microsoft.com/playwright:next-jammy @@ -34,17 +33,12 @@ jobs: name: playwright-report path: playwright-report/ retention-days: 30 - - deploy: - needs: test - if: github.ref_name == 'main' - runs-on: ubuntu-latest - - steps: - - name: Build static page for deployment - run: yarn predeploy - - name: Deploy to GH Pages 🚀 - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./build + - name: Build static page for deployment + if: github.ref_name == 'main' + run: yarn predeploy + - name: Deploy to GH Pages 🚀 + if: github.ref_name == 'main' + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: build