Skip to content

Commit

Permalink
Update web-editor-deploy.yml
Browse files Browse the repository at this point in the history
Fix: books not being copied to wasm build because Symptum.Data repo is not present locally
  • Loading branch information
ShankarBUS authored Dec 1, 2023
1 parent ef5aac2 commit 3e178b8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/web-editor-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ jobs:
runs-on: windows-latest
name: Deploy to GitHub Pages
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4
with:
path: Symptum
- name: Checkout Symptum.Data
uses: actions/checkout@v4
with:
repository: ShankarBUS/Symptum.Data
path: Symptum.Data
- name: Correct Web Manifest Scope
run: |
cd ./src/Symptum.Editor/Symptum.Editor.Wasm/
Expand All @@ -21,12 +29,12 @@ jobs:
dotnet-version: 8.0.x
- name: Restore Dependencies
run: dotnet restore ./src/Symptum.Editor/Symptum.Editor.Wasm/Symptum.Editor.Wasm.csproj
- name: Build
run: dotnet build ./src/Symptum.Editor/Symptum.Editor.Wasm/Symptum.Editor.Wasm.csproj "-p:WasmShellWebAppBasePath=/Symptum/editor/" --no-restore -f net8.0 -c Debug -o out
- 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\\dist\\* symptum\\editor -force -recurse -verbose
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
Expand Down

0 comments on commit 3e178b8

Please sign in to comment.