Skip to content

Commit

Permalink
Add github pages deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed May 24, 2024
1 parent ef49931 commit bb2fe6d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Builds and publishes the documentation website to gh-pages branch
name: Build docs

on:
workflow_dispatch:

jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
submodules: true

- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 8.x

- name: Setup DocFX
run: dotnet tool restore

- name: Setup Bonsai
working-directory: .bonsai
run: .\Setup.ps1

- name: Build Documentation
run: .\build.ps1

- name: Checkout gh-pages
uses: actions/checkout@v4.1.1
with:
ref: gh-pages
path: gh-pages
- name: Publish to github pages
uses: peaceiris/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
force_orphan: true

0 comments on commit bb2fe6d

Please sign in to comment.