File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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+ 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:'
You can’t perform that action at this time.
0 commit comments