-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (50 loc) · 1.5 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
on:
push:
tags:
- "v*"
name: Deploy Extension
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Slack Notification Start
id: slack
uses: voxmedia/github-action-slack-notify-build@v1
with:
channel_id: C02K52UNL0N
status: STARTED
color: FFA500
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
- uses: actions/checkout@v2
- run: npm install
- run: npm run compile
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
- uses: lannonbr/vsce-action@master
with:
args: "publish -p $VSCE_TOKEN"
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
- name: Notify Success Status
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
message_id: ${{ steps.slack.outputs.message_id }}
channel_id: C02K52UNL0N
status: SUCCESS
color: good
- name: Notify Fail Status
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
message_id: ${{ steps.slack.outputs.message_id }}
channel_id: C02K52UNL0N
status: FAILURE
color: danger