Skip to content

Release 2.1.0-preview.1 (#326) #56

Release 2.1.0-preview.1 (#326)

Release 2.1.0-preview.1 (#326) #56

Workflow file for this run

name: Update Docs
on:
push:
branches:
- main
permissions:
contents: write
pages: write
id-token: write
jobs:
update-docs:
name: docfx
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[nats:update-docs]')
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
- run: dotnet tool update -g docfx
- run: docfx docs/docfx.json
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: docs/_site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2