Skip to content

Commit 32f8300

Browse files
committed
[skip ci] pre release workflow support
1 parent 2eeec84 commit 32f8300

File tree

5 files changed

+28
-14
lines changed

5 files changed

+28
-14
lines changed

.github/workflows/gradle.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ jobs:
3434
env:
3535
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
3636
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
37-
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
37+
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
38+
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
3839
- name: Run Build
3940
if: github.event_name == 'push'
4041
id: build
@@ -43,6 +44,7 @@ jobs:
4344
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
4445
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
4546
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
47+
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
4648
with:
4749
arguments: build --refresh-dependencies
4850
- name: Publish Test Report
@@ -60,7 +62,7 @@ jobs:
6062
MAVEN_PUBLISH_URL: ${{ secrets.MAVEN_PUBLISH_SNAPSHOT_URL }}
6163
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
6264
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
63-
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
65+
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
6466
with:
6567
arguments: publish --refresh-dependencies
6668
- name: Generate Documentation
@@ -75,7 +77,7 @@ jobs:
7577
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
7678
- name: Publish to Github Pages
7779
if: steps.publish.outcome == 'success' && github.event_name == 'push'
78-
uses: micronaut-projects/github-pages-deploy-action@grails
80+
uses: grails/github-pages-deploy-action@grails
7981
env:
8082
TARGET_REPOSITORY: ${{ github.repository }}
8183
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.github/workflows/release-notes.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
# Otherwise:
3232
- name: Export Gradle Properties
3333
if: steps.check_release_drafter.outputs.has_release_drafter == 'false'
34-
uses: micronaut-projects/github-actions/export-gradle-properties@master
35-
- uses: micronaut-projects/github-actions/release-notes@master
34+
uses: grails/github-actions/export-gradle-properties@main
35+
- uses: grails/github-actions/release-notes@main
3636
if: steps.check_release_drafter.outputs.has_release_drafter == 'false'
3737
id: release_notes
3838
with:

.github/workflows/release.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
id: release_version
2424
run: echo ::set-output name=release_version::${GITHUB_REF:11}
2525
- name: Run pre-release
26-
uses: micronaut-projects/github-actions/pre-release@master
26+
uses: grails/github-actions/pre-release@main
2727
with:
2828
token: ${{ secrets.GITHUB_TOKEN }}
2929
- name: Generate secring file
@@ -36,14 +36,15 @@ jobs:
3636
env:
3737
NEXUS_PUBLISH_USERNAME: ${{ secrets.NEXUS_PUBLISH_USERNAME }}
3838
NEXUS_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PUBLISH_PASSWORD }}
39-
NEXUS_PUBLISH_NEXUS_URL: ${{ secrets.NEXUS_PUBLISH_RELEASE_URL }}
39+
NEXUS_PUBLISH_URL: ${{ secrets.NEXUS_PUBLISH_RELEASE_URL }}
4040
NEXUS_PUBLISH_STAGING_PROFILE_ID: ${{ secrets.NEXUS_PUBLISH_STAGING_PROFILE_ID }}
4141
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
4242
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
4343
SECRING_FILE: ${{ secrets.SECRING_FILE }}
4444
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
4545
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
46-
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
46+
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
47+
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
4748
with:
4849
arguments: -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg publishToSonatype closeAndReleaseSonatypeStagingRepository
4950
- name: Publish Documentation
@@ -55,12 +56,13 @@ jobs:
5556
env:
5657
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
5758
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
58-
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
59+
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
60+
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
5961
- name: Export Gradle Properties
60-
uses: micronaut-projects/github-actions/export-gradle-properties@master
62+
uses: grails/github-actions/export-gradle-properties@main
6163
- name: Publish to Github Pages
6264
if: steps.docs.outcome == 'success'
63-
uses: micronaut-projects/github-pages-deploy-action@grails
65+
uses: grails/github-pages-deploy-action@grails
6466
env:
6567
BETA: ${{ contains(steps.release_version.outputs.release_version, 'M') || contains(steps.release_version.outputs.release_version, 'RC') }}
6668
TARGET_REPOSITORY: ${{ github.repository }}
@@ -73,7 +75,7 @@ jobs:
7375
VERSION: ${{ steps.release_version.outputs.release_version }}
7476
- name: Run post-release
7577
if: success()
76-
uses: micronaut-projects/github-actions/post-release@master
78+
uses: grails/github-actions/post-release@main
7779
with:
7880
token: ${{ secrets.GITHUB_TOKEN }}
7981
env:

build.gradle

+10
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ apply plugin: "org.asciidoctor.jvm.convert"
2222
repositories {
2323
maven { url "https://repo.grails.org/grails/core" }
2424
mavenCentral()
25+
if (System.getenv("GITHUB_MAVEN_PASSWORD") && !grailsVersion.endsWith('-SNAPSHOT')) {
26+
System.out.println("Adding Grails Core Repo for project ${project.name}")
27+
maven {
28+
url = 'https://maven.pkg.github.com/grails/grails-core'
29+
credentials {
30+
username = 'DOES_NOT_MATTER'
31+
password = System.getenv("GITHUB_MAVEN_PASSWORD")
32+
}
33+
}
34+
}
2535
}
2636

2737
configurations {

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
projectVersion=6.0.0-SNAPSHOT
22

33
asciidoctorJvmVersion=4.0.3
4-
grailsVersion=7.0.0-SNAPSHOT
4+
grailsVersion=7.0.0-M1
55
grailsGradlePluginVersion=7.0.0-SNAPSHOT
6-
groovyVersion=4.0.23
6+
groovyVersion=4.0.24
77
liquibaseHibernate5Version=4.27.0
88

99
org.gradle.parallel=true

0 commit comments

Comments
 (0)