Skip to content

Commit

Permalink
[add] parallel building releases
Browse files Browse the repository at this point in the history
  • Loading branch information
VecHK committed Dec 16, 2023
1 parent 9b7d1fb commit 48070c8
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-dashboard:
name: Build Dashboard
name: Building Dashboard
runs-on: ubuntu-latest
if: contains(github.event.commits.*.message, '[skip ci]') == false
steps:
Expand All @@ -22,7 +22,7 @@ jobs:
with:
node-version: '12.14.0'

- name: Build Dashboard
- name: npm run build:prod
env:
NODE_ENV: development
run: |
Expand All @@ -37,11 +37,8 @@ jobs:
name: DashboardBuild
path: dashboard

- name: Display Dir
run: ls ./

build-front:
name: Build Front
name: Building Front
runs-on: ubuntu-latest
if: contains(github.event.commits.*.message, '[skip ci]') == false

Expand All @@ -54,7 +51,7 @@ jobs:
with:
node-version: '16'

- name: Build Front
- name: yarn build:development
env:
NODE_ENV: development
run: |
Expand All @@ -63,16 +60,13 @@ jobs:
echo "REACT_APP_BUILD_DESCRIPTION=Development version. build:${{ github.run_number }} commit:${{ github.sha }}" >> ./.env.production
yarn install --production=false
yarn build:development
ls ./
mv build ../
- uses: actions/upload-artifact@v4
with:
name: FrontBuild
path: build

- name: Display Dir
run: ls ./

upload-build:
name: upload Builds
needs: [build-front, build-dashboard]
Expand Down

0 comments on commit 48070c8

Please sign in to comment.