Skip to content

Commit 9faae07

Browse files
committed
Agregue o actualice la configuración del flujo de trabajo de implementación de App Service desde Azure Portal.
1 parent 693c8f5 commit 9faae07

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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: .

0 commit comments

Comments
 (0)