forked from twilio/twilio-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Debian release fix (twilio#354)
- Loading branch information
Showing
5 changed files
with
60 additions
and
74 deletions.
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Debian Executable Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
formula: | ||
description: 'Artifact Prefix' | ||
default: twilio | ||
jobs: | ||
debian-executable-release: | ||
name: Publish for ubuntu | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Getting latest tag | ||
id: get-tag | ||
run: | | ||
git fetch --prune --unshallow | ||
echo "::set-output name=TAG_NAME::$(git describe --tags $(git rev-list --tags --max-count=1))" | ||
- run: | | ||
make install | ||
sudo $(npm bin)/oclif-dev pack:deb | ||
- name: Upload binaries to release | ||
run: node .github/scripts/update-platform-executables.js | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
FILE: dist/deb/${{ github.event.inputs.formula }}_${{ steps.get-tag.outputs.TAG_NAME }}-1_amd64.deb | ||
ASSET_NAME: ${{ github.event.inputs.formula }}-${{ steps.get-tag.outputs.TAG_NAME }}.deb | ||
TAG_NAME: ${{ steps.get-tag.outputs.TAG_NAME }} | ||
REPO_NAME: ${{ github.repository }} | ||
|
||
notify-complete-fail: | ||
if: ${{ failure() || cancelled() }} | ||
needs: [ debian-executable-release ] | ||
name: Notify Release Failed | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Slack Notification | ||
uses: rtCamp/action-slack-notify@v2 | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.ALERT_SLACK_WEB_HOOK }} | ||
SLACK_COLOR: "#ff3333" | ||
SLACK_USERNAME: CLI Release Bot | ||
SLACK_ICON_EMOJI: ":ship:" | ||
SLACK_TITLE: "Twilio Cli" | ||
SLACK_MESSAGE: 'Debian Executable Release Failed' | ||
MSG_MINIMAL: actions url |
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
This file was deleted.
Oops, something went wrong.
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
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