spotify user db, #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: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
deploy-to-github-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install .NET WASM Build Tools | |
run: dotnet workload install wasm-tools | |
- name: Publish .NET project | |
run: dotnet publish 'MusicReleases/MusicReleases.csproj' -c:Release -p:GHPages=true -o 'dist/Web' --nologo | |
# copy index.html to 404.html to serve the same file when a file is not found | |
- name: copy index.html to 404.html | |
run: cp dist/Web/wwwroot/index.html dist/Web/wwwroot/404.html | |
# add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. (Allow files and folders starting with an underscore) | |
- name: Add .nojekyll file | |
run: touch dist/Web/wwwroot/.nojekyll | |
# commit published app to github pages | |
- name: Commit wwwroot to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: github-pages | |
folder: dist/Web/wwwroot |