diff options
author | mickael-caro-sonarsource <mickael.caro@sonarsource.com> | 2020-06-23 07:32:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 07:32:42 +0200 |
commit | e8b89b8a04612bb768c9be699f772ad0230da63f (patch) | |
tree | c6528a1b1bfbc8ec7b734d4a9d6bb77d4dfa75dd /.github | |
parent | adb67d645c3bcb9b46f29dea06ba082ebec9ba7a (diff) | |
download | sonar-scanner-cli-e8b89b8a04612bb768c9be699f772ad0230da63f.tar.gz sonar-scanner-cli-e8b89b8a04612bb768c9be699f772ad0230da63f.zip |
Add release with GH Actions. (#86)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..09d3d12 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }}" |