Skip to content

bump Roslyn version for dotnet-exec tool #261

bump Roslyn version for dotnet-exec tool

bump Roslyn version for dotnet-exec tool #261

Workflow file for this run

name: docs
on:
workflow_dispatch:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
release:
types: [published]
push:
branches:
- "main"
- "dev"
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
actions: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: dotnet Setup
uses: WeihanLi/dotnet-install@v0.2.0
with:
version: |
10.x
11.x
- name: Setup documentation
run: |
cp README.md docs/index.md
cp README.md docs/README.md
cp README.zh.md docs/README.zh.md
dotnet tool update -g docfx
docfx docs/docfx.json
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs/_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4