]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Add release with GH Actions. (#86)
authormickael-caro-sonarsource <mickael.caro@sonarsource.com>
Tue, 23 Jun 2020 05:32:42 +0000 (07:32 +0200)
committerGitHub <noreply@github.com>
Tue, 23 Jun 2020 05:32:42 +0000 (07:32 +0200)
.github/workflows/release.yml [new file with mode: 0644]

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644 (file)
index 0000000..09d3d12
--- /dev/null
@@ -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 }}"