Skip to content

Commit

Permalink
Update web-editor-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ShankarBUS committed Dec 3, 2023
1 parent 0824afe commit e75c912
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/web-editor-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,35 @@ jobs:
- name: Checkout Symptum.Data
uses: actions/checkout@v4
with:
repository: ShankarBUS/Symptum.Data
repository: symptum/Symptum.Data
path: Symptum.Data
- name: Correct Web Manifest Scope
run: |
cd ./main/src/Symptum.Editor/Symptum.Editor.Wasm/
(Get-Content manifest.webmanifest) -Replace '/', '/Symptum/editor/' | Set-Content manifest.webmanifest
(Get-Content manifest.webmanifest) -Replace '/', '/editor/' | Set-Content manifest.webmanifest
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore Dependencies
run: dotnet restore ./main/src/Symptum.Editor/Symptum.Editor.Wasm/Symptum.Editor.Wasm.csproj
- name: Publish
run: dotnet publish ./main/src/Symptum.Editor/Symptum.Editor.Wasm/Symptum.Editor.Wasm.csproj "-p:WasmShellWebAppBasePath=/Symptum/editor/" --no-restore -f net8.0 -c Release -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
run: dotnet publish ./main/src/Symptum.Editor/Symptum.Editor.Wasm/Symptum.Editor.Wasm.csproj "-p:WasmShellWebAppBasePath=/editor/" --no-restore -f net8.0 -c Release -o out
- name: Create Editor Folder
run: mkdir editor
- name: Copy Files to Editor Folder
run: copy-item out\\wwwroot\\* 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
run: touch editor/.nojekyll
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: ./symptum/
repo: symptum/editor
build_dir: ./editor/
author: Shankar <[email protected]>
committer: Shankar <[email protected]>
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e75c912

Please sign in to comment.