Merge pull request #117 from anmcgrath/selection-fixes #142
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: | |
push: | |
branches: [ main ] | |
jobs: | |
deploy-to-github-pages: | |
# use ubuntu-latest image to run steps on | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.300 | |
# publishes Blazor project to the release-folder | |
- name: Publish .NET Core Project | |
run: dotnet publish ./src/BlazorDatasheet.Wasm/BlazorDatasheet.Wasm.csproj -c Release -o release --nologo | |
- name: Change base-tag in index.html from / to BlazorDatasheet | |
run: sed -i 's/<base href="\/" \/>/<base href="\/BlazorDatasheet\/" \/>/g' release/wwwroot/index.html | |
- name: Add .nojekyll file | |
run: touch release/wwwroot/.nojekyll | |
- name: Commit wwwroot to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: release/wwwroot |