-
Notifications
You must be signed in to change notification settings - Fork 78
53 lines (46 loc) · 1.22 KB
/
build.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
43
44
45
46
47
48
49
50
51
52
53
name: Build WiX Web site
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
inputs:
tags:
manual: true
env:
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOCUSAURUS_SSR_CONCURRENCY: 5
jobs:
build:
name: Build
runs-on: windows-2022
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Npm restore
shell: cmd
run: ./src/restore.cmd
- name: Build wixweb
shell: cmd
run: ./src/build.cmd release ${{ secrets.GITHUB_TOKEN }}
# Do NOT publish logs on `master` branch as they may contain secrets in them.
- name: Save logs
if: github.ref != 'refs/heads/master' && (success() || failure())
uses: actions/upload-artifact@v3
with:
name: logs_${{ github.run_id }}
path: build/logs/
- name: Deploy
if: github.ref == 'refs/heads/master' && success()
uses: azure/webapps-deploy@v2
with:
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
app-name: wixtoolset
package: ./build/deploy