File tree Expand file tree Collapse file tree 1 file changed +9
-25
lines changed Expand file tree Collapse file tree 1 file changed +9
-25
lines changed Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
build-and-deploy :
12
- name : Deploy to Azure
13
12
runs-on : ubuntu-latest
14
- timeout-minutes : 60
15
- # env:
16
- # BUILD_PATH: './AutomaticClockOuts'
17
-
18
13
steps :
19
- - name : Checkout of master
20
- uses : actions/checkout@master
21
-
22
- - name : Set up Node.js version
23
- uses : actions/setup-node@v1
14
+ - uses : actions/checkout@master
15
+ - uses : actions/setup-node@v1
24
16
with :
25
17
node-version : ' 10.x'
26
-
27
- - name : ' run: npm install and build'
28
- working-directory : ./AutomaticClockOuts
18
+ - name : ' run npm'
29
19
run : |
30
- npm i -g nvm
31
- nvm install 10.16.3
32
- npm i -g azure-functions-core-tools@core --unsafe-perm true
33
20
npm install
34
- func azure functionapp publish time-tracker-azure-functions
35
-
36
- # - uses: actions/checkout@v2
37
- # - name: Slack Notification
38
-
39
- # env:
40
- # SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
41
- # SLACK_ICON: https://avatars.slack-edge.com/2020-04-14/1055222096486_7b0bf047c32f9f666b69_48.jpg
42
- # SLACK_USERNAME: 'heisenberg-deploy-azure-functions:'
21
+ npm run build --if-present
22
+ - uses : Azure/functions-action@v1
23
+ id : AutomaticClockOuts
24
+ with :
25
+ app-name : time-tracker-azure-functions
26
+ publish-profile : ${{ secrets.SCM_CREDENTIALS }}
You can’t perform that action at this time.
0 commit comments