Skip to content

Update README.md

Update README.md #39

name: build and test and deploy
on:
push:
branches:
- main
pull_request:
types: [closed]
branches:
- main
permissions:
contents: write
jobs:
deploy-to-github-pages:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@v4
# Install .NET Core SDK
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
# Install dotnet wasm buildtools workload
- name: Install .NET WASM Build Tools
run: dotnet workload install wasm-tools
# Publishes Blazor project to the release-folder
- name: Publish .NET Core Project
run: dotnet publish ./9cWebMarket.Frontend/9cWebMarket.Frontend.csproj -c:Release -p:GHPages=true -o dist/Web --nologo
# so underscore folders are not ignored
- name: Disable Jekyll
run: touch dist/Web/wwwroot/.nojekyll
- name: Commit wwwroot to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
FOLDER: dist/Web/wwwroot