Skip to content

Commit 9153e8a

Browse files
authored
Update release.yml (#13273)
Pass secring.gpg to assemble task
1 parent 213a4a1 commit 9153e8a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,21 @@ jobs:
3939
uses: ./.github/actions/pre-release
4040
with:
4141
token: ${{ secrets.GITHUB_TOKEN }}
42+
- name: Generate secring file
43+
if: success()
44+
env:
45+
SECRING_FILE: ${{ secrets.SECRING_FILE }}
46+
run: echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
4247
- name: Run Assemble
4348
if: success()
4449
id: assemble
4550
uses: gradle/gradle-build-action@v2
4651
with:
47-
arguments: assemble
52+
arguments: -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg assemble
4853
env:
54+
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
55+
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
56+
SECRING_FILE: ${{ secrets.SECRING_FILE }}
4957
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
5058
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
5159
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
@@ -63,11 +71,6 @@ jobs:
6371
args: build/distributions/grails-${{ steps.release_version.outputs.value }}.zip
6472
env:
6573
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66-
- name: Generate secring file
67-
if: success()
68-
env:
69-
SECRING_FILE: ${{ secrets.SECRING_FILE }}
70-
run: echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
7174
- name: Publish to Sonatype OSSRH
7275
id: publish
7376
if: success()

0 commit comments

Comments
 (0)