Skip to content

add file

add file #3

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Install DocFX
run: dotnet tool install -g docfx --version 2.77.0
- name: Restore dependencies
run: dotnet restore
- name: Build projects
run: |
dotnet build UNLowCoder/UNLowCoder.Core.csproj --configuration Release --no-restore
dotnet build UNLowCoder.SourceGen/UNLowCoder.SourceGen.csproj --configuration Release --no-restore
dotnet build UNLowCoder.Extensions/UNLowCoder.Extensions.csproj --configuration Release --no-restore
dotnet build UNLowCoder.Lib/UNLowCoder.Lib.csproj --configuration Release --no-restore
- name: Build documentation
run: docfx docs/docfx.json
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/_site
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4