|
21 | 21 | uses: actions/setup-java@v1 |
22 | 22 | with: |
23 | 23 | java-version: ${{ matrix.java }} |
| 24 | + - name: Extract Target Branch |
| 25 | + id: extract_branch |
| 26 | + run: | |
| 27 | + echo "Determining Target Branch" |
| 28 | + TARGET_BRANCH=`cat $GITHUB_EVENT_PATH | jq '.release.target_commitish' | sed -e 's/^"\(.*\)"$/\1/g'` |
| 29 | + echo $TARGET_BRANCH |
| 30 | + echo ::set-output name=value::${TARGET_BRANCH} |
24 | 31 | - name: Set the current release version |
25 | 32 | id: release_version |
26 | 33 | run: echo ::set-output name=release_version::${GITHUB_REF:11} |
|
39 | 46 | SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }} |
40 | 47 | run: | |
41 | 48 | echo "Publishing Artifacts" |
42 | | - ./gradlew bintrayUpload |
| 49 | + (set -x; ./gradlew bintrayUpload --no-daemon) |
| 50 | + (set -x; ./gradlew assemble --no-daemon) |
43 | 51 | - name: Export Gradle Properties |
44 | 52 | uses: micronaut-projects/github-actions/export-gradle-properties@master |
45 | 53 | - name: Run post-release |
|
49 | 57 | token: ${{ secrets.GITHUB_TOKEN }} |
50 | 58 | env: |
51 | 59 | SNAPSHOT_SUFFIX: .BUILD-SNAPSHOT |
| 60 | + - name: Create Message for the GORM Documentation Release |
| 61 | + if: success() |
| 62 | + id: gorm_docs_release_message |
| 63 | + run: | |
| 64 | + echo ::set-output name=value::{\"gorm_version\":\"$RELEASE_VERSION\"} |
| 65 | + env: |
| 66 | + RELEASE_VERSION: ${{ steps.release_version.outputs.release_version }} |
| 67 | + - name: Invoke gorm-docs release workflow |
| 68 | + if: success() |
| 69 | + id: gorm_docs |
| 70 | + |
| 71 | + with: |
| 72 | + workflow: Release |
| 73 | + repo: grails/gorm-docs |
| 74 | + ref: ${{ steps.extract_branch.outputs.value }} |
| 75 | + token: ${{ secrets.GH_TOKEN }} |
| 76 | + inputs: ${{ steps.gorm_docs_release_message.outputs.value }} |
52 | 77 | - name: Create Message for the Maven Central Sync |
53 | 78 | if: success() |
54 | 79 | id: maven_sync_message |
|
61 | 86 | |
62 | 87 | with: |
63 | 88 | workflow: Maven Central Sync |
64 | | - ref: master |
| 89 | + ref: ${{ steps.extract_branch.outputs.value }} |
65 | 90 | token: ${{ secrets.GH_TOKEN }} |
66 | 91 | inputs: ${{ steps.maven_sync_message.outputs.value }} |
0 commit comments