Skip to content

6th release (#4)

6th release (#4) #50

Workflow file for this run

name: build
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: write
jobs:
build-test-document:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
- name: Test
run: dotnet test --no-restore --verbosity minimal
- name: Setup DocFX
run: |
wget https://github.com/dotnet/docfx/releases/download/v2.75.3/docfx-linux-x64-v2.75.3.zip -O docfx.zip
unzip docfx.zip -d docfx
- name: Generate Documentation
run: |
docfx/docfx docfx.json
- name: Prepare Docs for Deployment
run: |
mv ./docs/README.html ./docs/index.html
cp ICON.png ./docs/
cp LICENSE ./docs/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs