Skip to content

Commit

Permalink
Added GRADLE_ENCRYPTION_KEY to the build
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzo committed Feb 12, 2024
1 parent e54636d commit 420e142
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/actions/setup-host/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: 'Setup Host'
description: 'Configures the host runner to run the build'

inputs:
gradle-encryption-key:
description: 'The encryption key to use for the Gradle Configuration cache'
required: true

runs:
using: "composite"
steps:
Expand All @@ -11,3 +16,5 @@ runs:
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: ${{ inputs.gradle-encryption-key }}
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
fetch-depth: 0
- name: Setup host
uses: ./.github/actions/setup-host
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Test & Build
run: ./gradlew -s build
- name: Publish Test Report
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
fetch-depth: 0
- name: Setup host
uses: ./.github/actions/setup-host
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Publish
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update-gradle-wrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
uses: actions/checkout@v4
- name: Setup host
uses: ./.github/actions/setup-host
with:
gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Update Gradle Wrapper
uses: gradle-update/update-gradle-wrapper-action@v1
with:
Expand Down

0 comments on commit 420e142

Please sign in to comment.