-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (33 loc) · 1.11 KB
/
Copy pathgithub-pages.yml
File metadata and controls
45 lines (33 loc) · 1.11 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
name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy-to-github-pages:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 10.0.x
- name: Install wasm-tools for AOT compilation
run: dotnet workload install wasm-tools
- name: Publish Frontend project
run: dotnet publish src/Frontend/Frontend.csproj -c Release -o release --nologo
- name: Change base-tag in index.html from / to PrimeView
run: sed -i 's/<base href="\/" \/>/<base href="\/PrimeView\/" \/>/g' release/wwwroot/index.html
- name: Copy index.html to 404.html
run: cp release/wwwroot/index.html release/wwwroot/404.html
- name: Remove Azure static web app config
run: rm release/wwwroot/staticwebapp.*
- name: Add .nojekyll file
run: touch release/wwwroot/.nojekyll
- name: Commit wwwroot to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: pages
folder: release/wwwroot