-
Notifications
You must be signed in to change notification settings - Fork 38
42 lines (34 loc) · 1.18 KB
/
main_mirnet-tfjs-demo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Deploy Node.js app
on:
push:
branches:
- main
jobs:
build-and-deploy:
if: "!contains(github.event.head_commit.message, 'skip-ci')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Node.js version
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Download LFS Objects
uses: wei/wget@v1
with:
args: -O ./example/model/variables/variables.data-00000-of-00001 https://github.com/Rishit-dagli/MIRNet-TFJS/releases/download/v0.1.0/variables.data-00000-of-00001
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm run test --if-present
working-directory: ./example
- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
with:
app-name: 'mirnet-tfjs-demo'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_8f220d0b027140998222b35bd5832e81 }}
package: .