Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Migrate release procedure to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wouter-admiraal-sonarsource authored Apr 27, 2020
1 parent 204dc9b commit 1aa51a8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
with:
args: "Release successful for {{ GITHUB_REPOSITORY }} by {{ GITHUB_ACTOR }}"
- name: Notify failures on Slack
uses: Ilshidur/[email protected]
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 }}"

0 comments on commit 1aa51a8

Please sign in to comment.