-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.37 KB
/
web-editor-deploy.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
name: Symptum Web Editor Deployment
on:
pull_request:
branches: [ editor-uno ]
push:
branches: [ editor-uno ]
workflow_dispatch: # Allows workflow to be ran via a button
jobs:
deploy-to-github-pages:
runs-on: windows-latest
name: Deploy to GitHub Pages
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore Dependencies
run: dotnet restore ./src/Symptum.Editor/Symptum.Editor.Wasm/Symptum.Editor.Wasm.csproj
- name: Publish
run: dotnet publish ./src/Symptum.Editor/Symptum.Editor.Wasm/Symptum.Editor.Wasm.csproj "-p:WasmShellWebAppBasePath=/Symptum/editor/" --no-restore -f net8.0 -c Debug -o out
- name: Create Symptum/Editor Folder
run: mkdir "symptum/editor"
- name: Copy Files to Symptum/Editor Folder
run: copy-item out\\wwwroot\\* symptum\\editor -force -recurse -verbose
# add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. (Allow files and folders starting with an underscore)
- name: Add .nojekyll file
run: touch symptum/editor/.nojekyll
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: ./symptum/
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}