Skip to content

V0.4.0 (#5)

V0.4.0 (#5) #34

Workflow file for this run

name: build
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-test-document:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore Dependencies
run: dotnet restore
- name: Build Solution
run: dotnet build --no-restore -c Release
- name: Test Solution
run: dotnet test --no-restore --no-build -c Release --verbosity minimal
- name: Generate Documentation
run: dotnet run --project src --no-build -c Release -- build
- name: Deploy documentation to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.site
keep_files: false