Skip to content

Commit

Permalink
Add workflow to deploy to Github Page
Browse files Browse the repository at this point in the history
  • Loading branch information
verdie-g committed Apr 27, 2024
1 parent f24caac commit 664ba42
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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 DotnetEventViewer --configuration Release -o publish

#- name: Change base href
#run: sed -i 's/<base href="\/" \/>/<base href="\/dotnet-event-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

0 comments on commit 664ba42

Please sign in to comment.