Adding condition to run only on master branch for specific tag push (#179)
This commit is contained in:
parent
7b142ba8b8
commit
55bb744a3b
6
.github/workflows/github-release.yml
vendored
6
.github/workflows/github-release.yml
vendored
|
|
@ -2,13 +2,13 @@ name: Appsmith Github Release Workflow
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: master
|
||||
# Only trigger if a tag has been created and pushed to this branch
|
||||
tags:
|
||||
- 'v*'
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
build-client:
|
||||
if: github.ref == 'refs/heads/master'
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
|
|
@ -61,6 +61,7 @@ jobs:
|
|||
docker push appsmith/appsmith-editor
|
||||
|
||||
build-server:
|
||||
if: github.ref == 'refs/heads/master'
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
|
|
@ -103,6 +104,7 @@ jobs:
|
|||
docker push appsmith/appsmith-server
|
||||
|
||||
create-release:
|
||||
if: github.ref == 'refs/heads/master'
|
||||
needs:
|
||||
- build-server
|
||||
- build-client
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user