Skip to content

Commit 73adb48

Browse files
committed
Adjusting release and gradle CI files to use secrets instead of hardcoded values
1 parent 8bf7337 commit 73adb48

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
java: [17, 21]
17+
java: [ 17, 21 ]
1818
steps:
1919
- name: "📥 Checkout repository"
2020
uses: actions/checkout@v4
@@ -56,7 +56,7 @@ jobs:
5656
GRAILS_PUBLISH_RELEASE: 'false'
5757
MAVEN_PUBLISH_USERNAME: ${{ secrets.MAVEN_PUBLISH_USERNAME }}
5858
MAVEN_PUBLISH_PASSWORD: ${{ secrets.MAVEN_PUBLISH_PASSWORD }}
59-
MAVEN_PUBLISH_URL: 'https://repo.grails.org/artifactory/plugins3-snapshots-local'
59+
MAVEN_PUBLISH_URL: $${{ secrets.MAVEN_PUBLISH_SNAPSHOT_URL }}
6060
run: ./gradlew publish
6161
- name: "📖 Generate Snapshot Documentation"
6262
if: ${{ hashFiles('src/main/asciidoc/**') != '' }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
GRAILS_PUBLISH_RELEASE: 'true'
6868
NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }}
6969
NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PUBLISH_PASSWORD }}
70-
NEXUS_PUBLISH_URL: 'https://ossrh-staging-api.central.sonatype.com/service/local/'
70+
NEXUS_PUBLISH_URL: ${{ secrets.NEXUS_PUBLISH_RELEASE_URL }}
7171
NEXUS_PUBLISH_DESCRIPTION: '${{ steps.extract_repository_name.outputs.repository_name }}:${{ steps.release_version.outputs.value }}'
7272
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
7373
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
@@ -111,7 +111,7 @@ jobs:
111111
GRAILS_PUBLISH_RELEASE: 'true'
112112
NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }}
113113
NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PUBLISH_PASSWORD }}
114-
NEXUS_PUBLISH_URL: 'https://ossrh-staging-api.central.sonatype.com/service/local/'
114+
NEXUS_PUBLISH_URL: ${{ secrets.NEXUS_PUBLISH_RELEASE_URL }}
115115
NEXUS_PUBLISH_DESCRIPTION: '${{ needs.publish.outputs.extract_repository_name }}:${{ needs.publish.outputs.release_version }}'
116116
run: >
117117
./gradlew
@@ -121,8 +121,8 @@ jobs:
121121
if: ${{ hashFiles('src/main/asciidoc/**') != '' }}
122122
run: ./gradlew docs
123123
- name: "📤 Publish Documentation to Github Pages"
124-
if: ${{ hashFiles('src/main/asciidoc/**') != '' }}
125124
uses: apache/grails-github-actions/deploy-github-pages@asf
125+
if: ${{ hashFiles('src/main/asciidoc/**') != '' }}
126126
env:
127127
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
128128
GRADLE_PUBLISH_RELEASE: 'true'

0 commit comments

Comments
 (0)