Skip to content

Commit 2195e89

Browse files
authored
Merge pull request #22 from ioet/testing8
testing deployment
2 parents c3df4e4 + e8dd571 commit 2195e89

File tree

1 file changed

+9
-25
lines changed

1 file changed

+9
-25
lines changed

.github/workflows/CD-azure-functions.yml

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,18 @@ on:
99

1010
jobs:
1111
build-and-deploy:
12-
name: Deploy to Azure
1312
runs-on: ubuntu-latest
14-
timeout-minutes: 60
15-
# env:
16-
# BUILD_PATH: './AutomaticClockOuts'
17-
1813
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
2416
with:
2517
node-version: '10.x'
26-
27-
- name: 'run: npm install and build'
28-
working-directory: ./AutomaticClockOuts
18+
- name: 'run npm'
2919
run: |
30-
npm i -g nvm
31-
nvm install 10.16.3
32-
npm i -g azure-functions-core-tools@core --unsafe-perm true
3320
npm install
34-
func azure functionapp publish time-tracker-azure-functions
35-
36-
# - uses: actions/checkout@v2
37-
# - name: Slack Notification
38-
# uses: rtCamp/[email protected]
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 }}

0 commit comments

Comments
 (0)