Skip to content

Commit

Permalink
Merge jobs into one
Browse files Browse the repository at this point in the history
  • Loading branch information
drauf committed Jun 1, 2023
1 parent 2d58f4b commit 0c1d6a6
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ on:
- main

jobs:
test:

build:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:next-jammy
Expand All @@ -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

0 comments on commit 0c1d6a6

Please sign in to comment.