Skip to content

Features/zxgraphics #43

Features/zxgraphics

Features/zxgraphics #43

Workflow file for this run

name: Publish website
on:
push:
branches:
- master
paths:
- ZXBasicStudioSite/**
pull_request:
branches:
- master
- ZXBasicStudioSite/**
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@v2
# Install .NET Core SDK
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.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 ZXBasicStudioSite/ZXBasicStudioSite.csproj -c:Release -p:GHPages=true -o dist/Web --nologo
- name: Commit wwwroot to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist/Web/wwwroot