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 4373c32
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to GitHub Pages

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Publish
run: dotnet publish --project 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

# Bypass Jekyll processing to allow directories starting with underscores
- name: Add .nojekyll file
run: touch publish/wwwroot/.nojekyll

- name: Commit wwwroot to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: publish/wwwroot

0 comments on commit 4373c32

Please sign in to comment.