Deploy to GitHub Pages #59
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: Deploy to GitHub Pages | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install WASM tools | |
run: dotnet workload install wasm-tools | |
- name: Publish | |
run: dotnet publish DotnetEventsViewer --configuration Release -o publish | |
- name: Change base href | |
run: sed -i 's/<base href="\/" \/>/<base href="\/dotnet-events-viewer\/" \/>/g' publish/wwwroot/index.html | |
- name: Setup GitHub Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: publish/wwwroot | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |