Skip to content

Commit

Permalink
Update gha workflow to pick up release tags
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanjan90 committed Mar 2, 2022
1 parent 8671f01 commit d01b5bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/gyro-aws-provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- master
- release/*
tags:
- release/*

pull_request:
branches:
Expand Down Expand Up @@ -34,4 +36,4 @@ jobs:
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew
run: ./gradlew
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (System.getenv('CI')) {
defaultTasks 'build', 'publish'

releaseBuild = System.getenv('GITHUB_ACTIONS_PULL_REQUEST') == '' &&
System.getenv('GITHUB_REF').startsWith("refs/head/release/");
System.getenv('GITHUB_REF').startsWith("refs/tags/release/");
} else {
defaultTasks 'build', 'publishToMavenLocal'
}
Expand Down

0 comments on commit d01b5bf

Please sign in to comment.