3.3.0 #32
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
env: | |
GRADLE_OPTS: "-Xmx6g -Xms4g" | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | |
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '8' | |
distribution: zulu | |
cache: 'gradle' | |
- name: Semantic Version | |
id: version | |
uses: ncipollo/semantic-version-action@v1 | |
- name: Decode PGP | |
id: write_file | |
uses: timheuer/base64-to-file@v1 | |
with: | |
fileName: 'secret.pgp' | |
encodedString: ${{ secrets.SIGNING_SECRET_KEY_BASE64 }} | |
- name: Release Micronaut 1.x | |
env: | |
SIGNING_SECRET_KEY_PATH: ${{ steps.write_file.outputs.filePath }} | |
uses: eskatos/gradle-command-action@v2 | |
with: | |
arguments: -x groovydoc publishToSonatype closeAndReleaseSonatypeStagingRepository -Pversion=${{ steps.version.outputs.tag }}-micronaut-1.0 --stacktrace -PmicronautVersion=1.3.7 -PspockVersion=2.0-groovy-2.5 -PgroovyVersion=2.5.15 -PgrailsVersion=4.0.4 -Pgorm.version=7.0.6.RELEASE -Prelease=true | |
- name: Release Micronaut 2.x | |
env: | |
SIGNING_SECRET_KEY_PATH: ${{ steps.write_file.outputs.filePath }} | |
uses: eskatos/gradle-command-action@v2 | |
with: | |
arguments: -x groovydoc publishToSonatype closeAndReleaseSonatypeStagingRepository -Pversion=${{ steps.version.outputs.tag }}-micronaut-2.0 --stacktrace -PmicronautVersion=2.5.13 -PspockVersion=2.0-groovy-3.0 -PgroovyVersion=3.0.9 -PgrailsVersion=5.1.1 -Pgorm.version=7.1.2 -Prelease=true | |
- name: Release Micronaut 3.x | |
env: | |
SIGNING_SECRET_KEY_PATH: ${{ steps.write_file.outputs.filePath }} | |
uses: eskatos/gradle-command-action@v2 | |
with: | |
arguments: migrateImports gitPublishPush -x groovydoc publishToSonatype closeAndReleaseSonatypeStagingRepository -Pversion=${{ steps.version.outputs.tag }}-micronaut-3.0 --stacktrace -PmicronautVersion=3.2.3 -PspockVersion=2.0-groovy-3.0 -PgroovyVersion=3.0.9 -PgrailsVersion=5.1.1 -Pgorm.version=7.1.2 -Prelease=true -Dorg.ajoberstar.grgit.auth.username=${{ secrets.AGORAPULSE_BOT_PERSONAL_TOKEN }} | |
ping: | |
name: Notify Upstream Repositories | |
runs-on: ubuntu-latest | |
needs: [release] | |
strategy: | |
matrix: | |
repository: | |
- agorapulse/agorapulse-bom | |
- agorapulse/agorapulse-oss | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Semantic Version | |
id: version | |
uses: ncipollo/semantic-version-action@v1 | |
- name: Dispatch to ${{ matrix.repository }} | |
uses: peter-evans/repository-dispatch@v1 | |
with: | |
token: ${{ secrets.AGORAPULSE_BOT_PERSONAL_TOKEN }} | |
repository: ${{ matrix.repository }} | |
event-type: ap-new-version-released-event | |
client-payload: '{ "group": "com.agorapulse", "module": "micronaut-grails", "version": "${{ steps.version.outputs.tag }}-micronaut-1.0", "property" : "micronaut.grails.version", "github" : ${{ toJson(github) }} }' |