aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2020-03-20 10:11:51 +0100
committersonartech <sonartech@sonarsource.com>2020-03-20 20:03:26 +0000
commit7385e3e75357857388b57e7d0cd85776e98dd802 (patch)
treec24862c8743751d4580830fcb694005e6d34c5b7 /.github
parentea3bcb138fa3ebab63f2d2ee41061f30e324f5b8 (diff)
downloadsonarqube-7385e3e75357857388b57e7d0cd85776e98dd802.tar.gz
sonarqube-7385e3e75357857388b57e7d0cd85776e98dd802.zip
Migrate release procedure to GH actions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 00000000000..5545ce52041
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,40 @@
+name: Release
+# This workflow is triggered when publishing a GitHub release
+on:
+ release:
+ types:
+ - published
+
+jobs:
+ release:
+ runs-on: ubuntu-latest
+ name: Start release process
+ steps:
+ # Not sure why this is needed... Fixes issue with running the action.
+ - name: Checkout release action
+ uses: actions/checkout@v2
+ with:
+ repository: SonarSource/gh-action_LT_release
+ - name: Run release action
+ id: run_release
+ uses: SonarSource/gh-action_LT_release@master
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_ORG_TOKEN }}
+ - name: Log outputs
+ if: always()
+ run: |
+ echo "${{ steps.run_release.outputs.releasability }}"
+ echo "${{ steps.run_release.outputs.release }}"
+ - name: Notify success on Slack
+ uses: Ilshidur/action-slack@2.0.0
+ env:
+ SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
+ with:
+ args: "Release successful for {{ GITHUB_REPOSITORY }} by {{ GITHUB_ACTOR }}"
+ - name: Notify failures on Slack
+ uses: Ilshidur/action-slack@2.0.0
+ if: failure()
+ env:
+ SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
+ with:
+ args: "Release failed, see the logs at https://github.com/{{ GITHUB_REPOSITORY }}/actions by {{ GITHUB_ACTOR }}"