Skip to content

Deploy to GitHub Pages #54

Deploy to GitHub Pages

Deploy to GitHub Pages #54

Workflow file for this run

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