Skip to content
This repository was archived by the owner on May 24, 2026. It is now read-only.

Commit 8e63a59

Browse files
committed
Add GitHub Pages
1 parent 75ac516 commit 8e63a59

2 files changed

Lines changed: 42 additions & 42 deletions

File tree

.github/workflows/build.yml

Lines changed: 42 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ on:
44
push:
55
branches:
66
- master
7-
pull_request:
8-
branches:
9-
- master
107
workflow_dispatch:
11-
inputs:
12-
tags:
13-
manual: true
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: true
1417

1518
env:
1619
DOTNET_NOLOGO: true
@@ -22,6 +25,9 @@ jobs:
2225
build:
2326
name: Build
2427
runs-on: windows-2022
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
2531
steps:
2632
- name: Checkout code
2733
uses: actions/checkout@v3
@@ -34,20 +40,36 @@ jobs:
3440

3541
- name: Build wixweb
3642
shell: cmd
37-
run: ./src/build.cmd release ${{ secrets.GITHUB_TOKEN }}
43+
run: ./src/build.cmd
3844

39-
# Do NOT publish logs on `master` branch as they may contain secrets in them.
40-
- name: Save logs
41-
if: github.ref != 'refs/heads/master' && (success() || failure())
42-
uses: actions/upload-artifact@v3
43-
with:
44-
name: logs_${{ github.run_id }}
45-
path: build/logs/
45+
- name: Setup Pages
46+
uses: actions/configure-pages@v5
4647

47-
- name: Deploy
48-
if: github.ref == 'refs/heads/master' && success()
49-
uses: azure/webapps-deploy@v2
48+
- name: Upload artifact
49+
uses: actions/upload-pages-artifact@v3
5050
with:
51-
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
52-
app-name: wixtoolset
53-
package: ./build/deploy
51+
path: build/deploy/wwwroot
52+
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4
56+
57+
# - name: Build wixweb
58+
# shell: cmd
59+
# run: ./src/build.cmd release ${{ secrets.GITHUB_TOKEN }}
60+
61+
# Do NOT publish logs on `master` branch as they may contain secrets in them.
62+
# - name: Save logs
63+
# if: github.ref != 'refs/heads/master' && (success() || failure())
64+
# uses: actions/upload-artifact@v3
65+
# with:
66+
# name: logs_${{ github.run_id }}
67+
# path: build/logs/
68+
69+
# - name: Deploy
70+
# if: github.ref == 'refs/heads/master' && success()
71+
# uses: azure/webapps-deploy@v2
72+
# with:
73+
# publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
74+
# app-name: wixtoolset
75+
# package: ./build/deploy

.github/workflows/cla.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)