Skip to content

Commit 8679f72

Browse files
committed
Update Release Workflow
to release gorm-docs.
1 parent 5e3e47e commit 8679f72

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ jobs:
2121
uses: actions/setup-java@v1
2222
with:
2323
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}
2431
- name: Set the current release version
2532
id: release_version
2633
run: echo ::set-output name=release_version::${GITHUB_REF:11}
@@ -39,7 +46,8 @@ jobs:
3946
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
4047
run: |
4148
echo "Publishing Artifacts"
42-
./gradlew bintrayUpload
49+
(set -x; ./gradlew bintrayUpload --no-daemon)
50+
(set -x; ./gradlew assemble --no-daemon)
4351
- name: Export Gradle Properties
4452
uses: micronaut-projects/github-actions/export-gradle-properties@master
4553
- name: Run post-release
@@ -49,6 +57,23 @@ jobs:
4957
token: ${{ secrets.GITHUB_TOKEN }}
5058
env:
5159
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+
uses: benc-uk/[email protected]
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 }}
5277
- name: Create Message for the Maven Central Sync
5378
if: success()
5479
id: maven_sync_message
@@ -61,6 +86,6 @@ jobs:
6186
uses: benc-uk/[email protected]
6287
with:
6388
workflow: Maven Central Sync
64-
ref: master
89+
ref: ${{ steps.extract_branch.outputs.value }}
6590
token: ${{ secrets.GH_TOKEN }}
6691
inputs: ${{ steps.maven_sync_message.outputs.value }}

0 commit comments

Comments
 (0)