Skip to content

Start looking at level 511 #68

Start looking at level 511

Start looking at level 511 #68

Workflow file for this run

name: .NET
on: push
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup DocFX
run: dotnet tool install -g docfx
- name: Restore
run: dotnet restore
- name: Build Debug
run: dotnet build -c Debug
- name: Build Windows X64
run: dotnet publish --os win
- name: Build Linux X64
run: dotnet publish --os linux
- name: Build MacOS Arm64
run: dotnet publish --runtime osx-arm64
- name: Archive Windows X64
uses: actions/upload-artifact@v4
with:
name: Windows-X64
path: bin/Release/net8.0/win-x64/publish
- name: Archive Linux X64
uses: actions/upload-artifact@v4
with:
name: Linux-X64
path: bin/Release/net8.0/linux-x64/publish
- name: Archive Macos Arm64
uses: actions/upload-artifact@v4
with:
name: MacOS-Arm64
path: bin/Release/net8.0/osx-arm64/publish
- name: DocFX Build
run: cd docfx && docfx docfx.json
continue-on-error: false
- name: Archive Docs
uses: actions/upload-artifact@v4
with:
name: Docs
path: docfx/_site
- name: Publish
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docfx/_site
force_orphan: true