Skip to content

Commit 6afa759

Browse files
committed
fix: #47 adding deployment notifications
1 parent 1d357c6 commit 6afa759

File tree

1 file changed

+39
-30
lines changed

1 file changed

+39
-30
lines changed

.github/workflows/CD-time-tracker-ui.yml

Lines changed: 39 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,51 @@
44
name: CD process to deploy to App-Service service
55

66
on:
7-
# Trigger the workflow on pull request but only for the master branch
8-
pull_request:
9-
types: [closed]
7+
push:
108
branches:
11-
- master
9+
- 47-notify-deployments
10+
# Trigger the workflow on pull request but only for the master branch
11+
# pull_request:
12+
# types: [closed]
13+
# branches:
14+
# - master
1215

1316
jobs:
1417
build-and-deploy:
15-
name: Deploy to Azure
16-
runs-on: ubuntu-latest
17-
timeout-minutes: 60
1818
steps:
19-
- name: Checkout of master
20-
uses: actions/checkout@master
19+
- uses: actions/checkout@v2
20+
- name: Slack Notification
21+
uses: rtCamp/[email protected]
22+
env:
23+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
24+
# name: Deploy to Azure
25+
# runs-on: ubuntu-latest
26+
# timeout-minutes: 60
27+
# steps:
28+
# - name: Checkout of master
29+
# uses: actions/checkout@master
2130

22-
- name: Set up Node.js version
23-
uses: actions/setup-node@v1
24-
with:
25-
node-version: '12.x'
31+
# - name: Set up Node.js version
32+
# uses: actions/setup-node@v1
33+
# with:
34+
# node-version: '12.x'
2635

27-
- name: Inject Secrets
28-
env:
29-
SCOPES: ${{ secrets.scopes }}
30-
CLIENT_ID: ${{ secrets.client_id }}
31-
AUTHORITY: ${{ secrets.authority }}
32-
run: sudo sh scripts/populate-keys.sh
36+
# - name: Inject Secrets
37+
# env:
38+
# SCOPES: ${{ secrets.scopes }}
39+
# CLIENT_ID: ${{ secrets.client_id }}
40+
# AUTHORITY: ${{ secrets.authority }}
41+
# run: sudo sh scripts/populate-keys.sh
3342

34-
- name: 'run: npm install and build'
35-
run: |
36-
npm install
37-
npm run build --prod --if-present
43+
# - name: 'run: npm install and build'
44+
# run: |
45+
# npm install
46+
# npm run build --prod --if-present
3847

39-
- name: 'Deploy to Azure Web App'
40-
uses: azure/webapps-deploy@v1
41-
with:
42-
app-name: 'time-tracker-ui'
43-
slot-name: 'production'
44-
publish-profile: ${{ secrets.AzureAppService_PublishProfile_728dc744f9384bf38e8a0446aaaee29d }}
45-
package: dist/time-tracker
48+
# - name: 'Deploy to Azure Web App'
49+
# uses: azure/webapps-deploy@v1
50+
# with:
51+
# app-name: 'time-tracker-ui'
52+
# slot-name: 'production'
53+
# publish-profile: ${{ secrets.AzureAppService_PublishProfile_728dc744f9384bf38e8a0446aaaee29d }}
54+
# package: dist/time-tracker

0 commit comments

Comments
 (0)