5353
5454jobs :
5555# 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
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
7777 release :
7878 runs-on : ubuntu-18.04
7979 steps :
@@ -281,7 +281,6 @@ jobs:
281281 }
282282 wait-for-completion : false
283283
284-
285284 slack :
286285 if : always()
287286 needs : [set-next-version, update-site, create-or-update-fix-branch]
@@ -297,7 +296,17 @@ jobs:
297296 ([ "${{env.WORKFLOW_CONCLUSION}}" = "cancelled" ] && echo ":heavy_multiplication_x:") ||
298297 echo ":interrobang:"
299298 )
300- echo "STATUS_ICON=$ICON" >> $GITHUB_ENV
299+ echo "STATUS_ICON=$ICON" >> $GITHUB_ENV
300+ - run : >
301+ echo "MESSAGE=" >> $GITHUB_ENV
302+ - run : |
303+ echo 'MESSAGE<<EOF' >> $GITHUB_ENV
304+ echo '>v${{ github.event.inputs.release-version }} released on <https://oss.sonatype.org/#stagingRepositories|staging repository>. ' >> $GITHUB_ENV
305+ echo '> ' >> $GITHUB_ENV
306+ echo '>You need to check that everything is fine and then promote to publish the release on Maven Central' >> $GITHUB_ENV
307+ echo 'EOF' >> $GITHUB_ENV
308+ if: ${{ env.WORKFLOW_CONCLUSION == 'success' }}
309+ - run : echo "${{ env.MESSAGE }}"
301310 - uses : 8398a7/action-slack@v3
302311 with :
303312 status : ${{ env.WORKFLOW_CONCLUSION }}
@@ -307,7 +316,8 @@ jobs:
307316 icon_url : https://github.com/groupe-sii/ogham/raw/master/src/site/resources/img/ogham-blue-256x256.png
308317 text : |
309318 ${{ env.STATUS_ICON }} _${{ github.event.inputs.release-version }}_
310- ${{ github.event.head_commit.message }}
319+
320+ ${{ env.MESSAGE }}
311321 env :
312322 SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
313323
0 commit comments