-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (27 loc) · 1.03 KB
/
deploy-website.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
on: workflow_dispatch
jobs:
deploy-website:
name: Deploy BlazorSvgEditor demo website
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup dotnet version
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x.x
# Generate the website
- name: Publish
run: dotnet publish BlazorSvgEditor.WasmTest/BlazorSvgEditor.WasmTest.csproj --configuration Release --output build
- name: Change base-tag in index.html from / to BlazorGitHubPagesDemo
run: sed -i 's/<base href="\/" \/>/<base href="\/BlazorSvgEditor\/" \/>/g' build/wwwroot/index.html
# Publish the website
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.9.2
with:
deploy_key: ${{ secrets.DEPLOY_PRIVATE_SSH }}
publish_branch: gh-pages
publish_dir: build/wwwroot
allow_empty_commit: false
keep_files: false
force_orphan: true