File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ # Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2+ # More GitHub Actions for Azure: https://github.com/Azure/actions
3+
4+ name : Build and deploy Node.js app to Azure Web App - time-tracker-ui
5+
6+ on :
7+ push :
8+ branches :
9+ - master
10+
11+ jobs :
12+ build-and-deploy :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@master
17+
18+ - name : Set up Node.js version
19+ uses : actions/setup-node@v1
20+ with :
21+ node-version : ' 12.x'
22+
23+ - name : npm install, build, and test
24+ run : |
25+ npm install
26+ npm run build --if-present
27+ npm run test --if-present
28+
29+ - name : ' Deploy to Azure Web App'
30+ uses : azure/webapps-deploy@v1
31+ with :
32+ app-name : ' time-tracker-ui'
33+ slot-name : ' production'
34+ publish-profile : ${{ secrets.AzureAppService_PublishProfile_728dc744f9384bf38e8a0446aaaee29d }}
35+ package : .
You can’t perform that action at this time.
0 commit comments