-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmaster_smallbasic-publicwebsite.yml
More file actions
47 lines (37 loc) · 1.21 KB
/
master_smallbasic-publicwebsite.yml
File metadata and controls
47 lines (37 loc) · 1.21 KB
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
43
44
45
46
47
# 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: Build and deploy to Caseysc`s Azure Web App - smallbasic-publicwebsite
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 12.x
- name: npm install angular cli
run: npm install -g @angular/[email protected]
- name: npm install packages
run: npm ci
- name: build site
run: ng build --prod
- name: Copy Web.config=
uses: canastro/[email protected]
with:
# Source file
source: Web.config
# Target file
target: dist/small-basic-website/Web.config
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'smallbasic-publicwebsite'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_fd8c42b7353d4def8619bba50d8d257a }}
package: dist/small-basic-website