Skip to content

Commit 87bb06b

Browse files
authored
Merge pull request #12 from ioet/deploy-on-merge-to-master
including CD pipeline declaration on GithubActions
2 parents 85d709f + fe019b7 commit 87bb06b

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CD process to deploy to AzureFuncions
2+
3+
on:
4+
# Trigger the workflow on pull request but only for the master branch
5+
pull_request:
6+
types: [closed]
7+
branches:
8+
- master
9+
10+
jobs:
11+
build-and-deploy:
12+
name: Deploy to Azure
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 60
15+
16+
steps:
17+
- name: Checkout of master
18+
uses: actions/checkout@master
19+
20+
- name: Set up Node.js version
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: '10.x'
24+
25+
- name: 'run: npm install and build'
26+
run: |
27+
cd AutomaticClockOuts
28+
npm i azure-functions-core-tools@core --unsafe-perm true
29+
npm install
30+
func azure functionapp publish time-tracker-azure-functions
31+
32+
- uses: actions/checkout@v2
33+
- name: Slack Notification
34+
uses: rtCamp/[email protected]
35+
env:
36+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
37+
SLACK_ICON: https://avatars.slack-edge.com/2020-04-14/1055222096486_7b0bf047c32f9f666b69_48.jpg
38+
SLACK_USERNAME: 'heisenberg-deploy-azure-functions:'

0 commit comments

Comments
 (0)