-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Codeclimate deployment action (#106)
Co-authored-by: Ahmed-CIO <>
- Loading branch information
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,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. | ||
|
||
- name: Deploy git tag via semantic release | ||
uses: cycjimmy/semantic-release-action@v4 | ||
|
@@ -76,6 +76,14 @@ jobs: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
|
||
- name: Send Velocity Deployment | ||
uses: codeclimate/[email protected] | ||
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/[email protected] | ||
if: ${{ failure() }} # only run this if any previous step failed | ||
|