Skip to content

Commit

Permalink
Extract dev-builds to own workflow (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoroth authored Jan 24, 2023
1 parent ce327c2 commit f04a21c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ jobs:

runs-on: ubuntu-latest


steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
cache: 'yarn'

- run: yarn install
- run: yarn run playwright install --with-deps
Expand All @@ -39,7 +35,3 @@ jobs:

- name: Firefox Test
run: yarn test:browser --project=firefox

- name: Publish dev build
run: .github/scripts/publish-dev-build '${{ secrets.DEV_BUILD_GITHUB_TOKEN }}'
if: ${{ github.event_name == 'push' }}
24 changes: 24 additions & 0 deletions .github/workflows/dev-builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: dev-builds

on:
workflow_dispatch:
push:
branches:
- main
- 'builds/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'

- run: yarn install
- run: yarn build

- name: Publish dev build
run: .github/scripts/publish-dev-build '${{ secrets.DEV_BUILD_GITHUB_TOKEN }}'

0 comments on commit f04a21c

Please sign in to comment.