Skip to content

Commit

Permalink
Merge pull request #242 from perfectsense/bugfix/fix-gha-for-release
Browse files Browse the repository at this point in the history
fix gha and build for release
  • Loading branch information
deepanjan90 authored Jun 3, 2022
2 parents 932781b + ea28924 commit 028da18
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-google-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 028da18

Please sign in to comment.