Skip to content

Commit b0e9a27

Browse files
committed
[skip ci] - fix release publish
1 parent 3e8bee3 commit b0e9a27

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,33 @@ jobs:
99
GIT_USER_NAME: 'grails-build'
1010
GIT_USER_EMAIL: 'grails-build@users.noreply.github.com'
1111
steps:
12-
- name: Checkout repository
12+
- name: "📥 Checkout repository"
1313
uses: actions/checkout@v4
1414
with:
1515
token: ${{ secrets.GH_TOKEN }}
16-
- name: Set up JDK
16+
- name: "☕️ Setup JDK"
1717
uses: actions/setup-java@v4
1818
with:
19-
distribution: 'liberica'
20-
java-version: '17'
21-
- name: Set the current release version
19+
java-version: 17
20+
distribution: liberica
21+
- name: "🐘 Setup Gradle"
22+
uses: gradle/actions/setup-gradle@v4
23+
with:
24+
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
25+
- name: "📝 Store the current release version"
2226
id: release_version
23-
run: echo ::set-output name=release_version::${GITHUB_REF:11}
24-
- name: Run pre-release
27+
run: echo "release_version=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
28+
- name: "Run pre-release"
2529
uses: grails/github-actions/pre-release@main
2630
with:
2731
token: ${{ secrets.GITHUB_TOKEN }}
28-
- name: Generate secring file
32+
- name: "🔐 Generate key file for artifact signing"
2933
env:
3034
SECRING_FILE: ${{ secrets.SECRING_FILE }}
3135
run: echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
32-
- name: Publish to Sonatype OSSRH
36+
- name: "📤 Publish artifacts to Sonatype"
3337
id: publish
34-
uses: gradle/gradle-build-action@v3
38+
working-directory: ./plugin
3539
env:
3640
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
3741
NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }}
@@ -41,8 +45,8 @@ jobs:
4145
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
4246
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
4347
SECRING_FILE: ${{ secrets.SECRING_FILE }}
44-
with:
45-
arguments: -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg publishToSonatype closeAndReleaseSonatypeStagingRepository
48+
run: >
49+
../gradlew -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg publishToSonatype closeAndReleaseSonatypeStagingRepository
4650
- name: Publish Documentation
4751
if: success()
4852
uses: gradle/gradle-build-action@v3

0 commit comments

Comments
 (0)