Skip to content

Commit 5170f59

Browse files
ci(release) Add information message for promoting release
1 parent 89e4ccb commit 5170f59

File tree

1 file changed

+14
-25
lines changed

1 file changed

+14
-25
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Release
22

3+
# FIXME: maven-release-plugin can't be used due to issue: https://issues.apache.org/jira/browse/MRELEASE-920
34
# Process
45
# -------
56
#
@@ -52,28 +53,6 @@ on:
5253
default: '3.0.1-SNAPSHOT'
5354

5455
jobs:
55-
# FIXME: maven-release-plugin can't be used due to issue: https://issues.apache.org/jira/browse/MRELEASE-920
56-
# release:
57-
# runs-on: ubuntu-18.04
58-
# steps:
59-
# - uses: actions/checkout@v2
60-
# - uses: actions/setup-java@v1
61-
# with:
62-
# java-version: 8
63-
# - name: Cache Maven packages
64-
# uses: actions/cache@v2
65-
# with:
66-
# path: |
67-
# ~/.m2/repository
68-
# !~/.m2/repository/fr/sii/
69-
# key: ${{ runner.os }}-m2-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/pom.xml') }}
70-
# restore-keys: ${{ runner.os }}-m2-${{ secrets.CACHE_VERSION }}
71-
# - name: "Release"
72-
# run:
73-
# ./mvnw release:prepare
74-
# -DreleaseVersion=${{ github.event.inputs.release-version }}
75-
# -DdevelopmentVersion=${{ github.event.inputs.next-dev-version }}
76-
# -B
7756
release:
7857
runs-on: ubuntu-18.04
7958
steps:
@@ -281,7 +260,6 @@ jobs:
281260
}
282261
wait-for-completion: false
283262

284-
285263
slack:
286264
if: always()
287265
needs: [set-next-version, update-site, create-or-update-fix-branch]
@@ -297,7 +275,17 @@ jobs:
297275
([ "${{env.WORKFLOW_CONCLUSION}}" = "cancelled" ] && echo ":heavy_multiplication_x:") ||
298276
echo ":interrobang:"
299277
)
300-
echo "STATUS_ICON=$ICON" >> $GITHUB_ENV
278+
echo "STATUS_ICON=$ICON" >> $GITHUB_ENV
279+
- run: >
280+
echo "MESSAGE=" >> $GITHUB_ENV
281+
- run: |
282+
echo 'MESSAGE<<EOF' >> $GITHUB_ENV
283+
echo '>v${{ github.event.inputs.release-version }} released on <https://oss.sonatype.org/#stagingRepositories|staging repository>. ' >> $GITHUB_ENV
284+
echo '> ' >> $GITHUB_ENV
285+
echo '>You need to check that everything is fine and then promote to publish the release on Maven Central' >> $GITHUB_ENV
286+
echo 'EOF' >> $GITHUB_ENV
287+
if: ${{ env.WORKFLOW_CONCLUSION == 'success' }}
288+
- run: echo "${{ env.MESSAGE }}"
301289
- uses: 8398a7/action-slack@v3
302290
with:
303291
status: ${{ env.WORKFLOW_CONCLUSION }}
@@ -307,7 +295,8 @@ jobs:
307295
icon_url: https://github.com/groupe-sii/ogham/raw/master/src/site/resources/img/ogham-blue-256x256.png
308296
text: |
309297
${{ env.STATUS_ICON }} _${{ github.event.inputs.release-version }}_
310-
${{ github.event.head_commit.message }}
298+
299+
${{ env.MESSAGE }}
311300
env:
312301
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
313302

0 commit comments

Comments
 (0)