Update web-editor-deploy.yml #9
Workflow file for this run
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
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: | |
- 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/ | |
(Get-Content manifest.webmanifest) -Replace '/', '/Symptum/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 ./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 }} |