Skip to content

Commit

Permalink
Update docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LolaLollipop authored Nov 12, 2023
1 parent 4037910 commit 8151b7f
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
docs:
permissions:
contents: 'read'
pages: 'write'
id-token: 'write'

environment:
Expand All @@ -20,14 +21,18 @@ jobs:
runs-on: ubuntu-latest
name: Generate and publish the docs
steps:
- uses: actions/checkout@v1
name: Checkout code
- uses: nunit/docfx-action@v3
name: Build Documentation
- name: Checkout
uses: actions/checkout@v3
- name: Dotnet Setup
uses: actions/setup-dotnet@v3
with:
args: docfx.json
- name: Deploy GitHub Pages site
uses: actions/deploy-pages@v3
dotnet-version: 7.x

- run: dotnet tool update -g docfx
- run: docfx docfx.json

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site

0 comments on commit 8151b7f

Please sign in to comment.