Skip to content

Commit

Permalink
allow Gradle Build Cache to be written on release branches, and tags (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aSemy authored Mar 5, 2024
1 parent 8645b54 commit 05bcfcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/run_gradle_task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ jobs:
with:
gradle-home-cache-cleanup: true
arguments: ${{ inputs.gradle-task }}
# write build cache on 'main' and 'release' branches, or tags (default is 'main' only)
cache-read-only: ${{ github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/heads/release') && !startsWith(github.ref, 'refs/tags/') }}
env:
MAVEN_SONATYPE_USERNAME: ${{ vars.MAVEN_SONATYPE_USERNAME }}
MAVEN_SONATYPE_PASSWORD: ${{ secrets.MAVEN_SONATYPE_PASSWORD }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/run_publish_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
- uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
# write build cache on 'main' and 'release' branches, or tags (default is 'main' only)
cache-read-only: ${{ github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/heads/release') && !startsWith(github.ref, 'refs/tags/') }}
arguments: |
:modules:docs:dokkatooGenerate
Expand Down

0 comments on commit 05bcfcf

Please sign in to comment.