Skip to content

Commit

Permalink
Revert back to docs.yml but updated to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
banchan86 committed Sep 19, 2024
1 parent cf35d1a commit e72288c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 42 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/build.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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: 7.x

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2

- name: Restore NuGet Packages
run: msbuild -t:restore src/Bonsai.DAQmx.sln

- name: Build Solution
run: msbuild src/Bonsai.DAQmx.sln /p:Configuration=Release

- name: Setup DocFX
run: dotnet tool restore

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

- name: Build Documentation
working-directory: docs
run: ./build.ps1

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

0 comments on commit e72288c

Please sign in to comment.