Skip to content

Commit 511b10b

Browse files
committed
Improve gh workflow
1 parent ed60cf8 commit 511b10b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/publish-website.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- main
77
- develop
8+
- develop-docs
9+
workflow_dispatch:
810

911
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1012
permissions:
@@ -23,22 +25,20 @@ jobs:
2325
environment:
2426
name: github-pages
2527
url: ${{ steps.deployment.outputs.page_url }}
28+
2629
runs-on: ubuntu-latest
30+
2731
steps:
2832
- name: Checkout
2933
uses: actions/checkout@v6
30-
- name: Dotnet Setup
31-
uses: actions/setup-dotnet@v5
32-
with:
33-
dotnet-version: 8.x
3434

35-
- name: Run Doxygen to generate API docs
36-
uses: mattnotmitt/doxygen-action@v1
35+
- name: Build documentation site
36+
uses: devcontainers/[email protected]
3737
with:
38-
doxyfile-path: './Doxyfile'
39-
40-
- run: dotnet tool update -g docfx
41-
- run: docfx docfx.json
38+
configFile: .devcontainer/doc-builder/devcontainer.json
39+
runCmd: |
40+
doxygen Doxyfile
41+
docfx docfx.json
4242
4343
- name: Upload artifact
4444
uses: actions/upload-pages-artifact@v4
@@ -47,6 +47,6 @@ jobs:
4747
path: '_site'
4848

4949
- name: Deploy to GitHub Pages
50-
if: github.ref == 'refs/heads/main'
50+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop-docs'
5151
id: deployment
5252
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)