-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0824afe
commit e75c912
Showing
1 changed file
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |