Browse Source

Add release with GH Actions. (#86)

tags/4.4.0.2170
mickael-caro-sonarsource 3 years ago
parent
commit
e8b89b8a04
No account linked to committer's email address
1 changed files with 32 additions and 0 deletions
  1. 32
    0
      .github/workflows/release.yml

+ 32
- 0
.github/workflows/release.yml View File

@@ -0,0 +1,32 @@
name: sonar-release
# This workflow is triggered when publishing a new github release
on:
release:
types:
- published

jobs:
sonar_release:
runs-on: ubuntu-latest
name: Start release process
steps:
- name: Checkout release action
uses: actions/checkout@v2
with:
repository: SonarSource/gh-action_LT_release

- name: Scanner release
id: scanner_release
with:
distribute: true
attach_artifacts_to_github_release: true
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# Put your action repo here
uses: SonarSource/gh-action_LT_release@master

- name: Check outputs
if: always()
run: |
echo "${{ steps.scanner_release.outputs.releasability }}"
echo "${{ steps.scanner_release.outputs.release }}"

Loading…
Cancel
Save