Adding condition to run only on master branch for specific tag push (#179)

This commit is contained in:
Arpit Mohan 2020-07-28 14:55:16 +05:30 committed by GitHub
parent 7b142ba8b8
commit 55bb744a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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