From f1bfc227c726f1651f2f98b0a541e4eb067ab1cf Mon Sep 17 00:00:00 2001 From: Ahmed Ali <142905621+Ahmed-CIO@users.noreply.github.com> Date: Mon, 8 Jan 2024 14:19:28 +0000 Subject: [PATCH] chore: Codeclimate deployment action (#280) Co-authored-by: Ahmed-CIO <> --- .github/workflows/deploy-sdk.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-sdk.yml b/.github/workflows/deploy-sdk.yml index b77cb4761..6597ef819 100644 --- a/.github/workflows/deploy-sdk.yml +++ b/.github/workflows/deploy-sdk.yml @@ -23,7 +23,7 @@ jobs: # If using sd on macos, "brew install" works great. for Linux, this is the recommended way. - name: Install sd CLI to use later in the workflow # uses: kenji-miyake/setup-sd@v1 - uses: levibostian/setup-sd@add-file-extension # Using fork until upstream Action has bug fixed in it. + uses: levibostian/setup-sd@add-file-extension # Using fork until upstream Action has bug fixed in it. # Semantic-release tool is used to: # 1. Determine the next semantic version for the software during deployment. @@ -84,6 +84,14 @@ jobs: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFY_RELEASES_WEBHOOK_URL }} SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + - name: Send Velocity Deployment + uses: codeclimate/velocity-deploy-action@v1.0.0 + if: steps.semantic-release.outputs.new_release_published == 'true' # only run if a git tag was made. + with: + token: ${{ secrets.VELOCITY_DEPLOYMENT_TOKEN }} + version: ${{ steps.semantic-release.outputs.new_release_version }} + environment: production + - name: Notify team of failure uses: slackapi/slack-github-action@v1.24.0 if: ${{ failure() }} # only run this if any previous step failed