Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit b74b194

Browse files
committed
Add on release in ci pipeline
1 parent adee72a commit b74b194

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414
# On master, we want all builds to complete even if merging happens faster for better reliability and to make it easier to discover at which point something broke.
1515
# on developmetn, new workflow trigger will cancel the in progress job, and start a new one..
1616
group: ${{ format('ci-{0}', github.ref) }}
17-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
17+
cancel-in-progress: ${{ github.event_name == 'release' && github.event.release.prerelease == false }}
1818
jobs:
1919
build-and-deploy:
2020

@@ -57,7 +57,7 @@ jobs:
5757
- name: Build in case main
5858
if: |
5959
github.event_name == 'release' &&
60-
github.event.release.prerelease == false
60+
github.event.release.prerelease != true
6161
run: |
6262
VERSION=$GITHUB_REF
6363
VERSION=${VERSION:10:12}NETWORK=main yarn build:app

0 commit comments

Comments
 (0)