ci: update build steps
This commit is contained in:
parent
c21884e5a8
commit
4209deadc9
1 changed files with 5 additions and 5 deletions
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
|
@ -48,9 +48,9 @@ jobs:
|
|||
run: |
|
||||
. script/bootstrap
|
||||
yarn lint
|
||||
build:
|
||||
build-app:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build
|
||||
name: Build App
|
||||
needs: setup
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -74,7 +74,7 @@ jobs:
|
|||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}-parcel
|
||||
- run: |
|
||||
. script/bootstrap
|
||||
yarn build
|
||||
yarn build:app
|
||||
- name: Build Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
@ -84,7 +84,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
name: Deploy preview
|
||||
if: ${{ github.ref != 'refs/heads/main' }}
|
||||
needs: build
|
||||
needs: build-app
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
|
@ -128,7 +128,7 @@ jobs:
|
|||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
name: Deploy
|
||||
needs: build
|
||||
needs: build-app
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
Loading…
Reference in a new issue