Skip to content

Commit 205e893

Browse files
authored
Update main.yml
1 parent 7831ba1 commit 205e893

1 file changed

Lines changed: 23 additions & 17 deletions

File tree

.github/workflows/main.yml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,37 @@
1-
name: Generate and deploy Doxygen documents
1+
name: Deploy Doxygen Docs
22

33
on:
44
push:
55
branches:
6-
- features/docs-update
6+
- main
7+
8+
permissions:
9+
contents: write
710

811
jobs:
9-
build:
10-
permissions:
11-
contents: write
12-
runs-on:
13-
ubuntu-latest
12+
deploy:
13+
runs-on: ubuntu-latest
14+
1415
steps:
15-
- name: Checkout repository
16-
uses: actions/checkout@v3
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: '9.0.x'
1723

18-
- name: Install Doxygen
19-
run: sudo apt-get update && sudo apt-get install doxygen -y doxygen graphviz
24+
- name: Build Project
25+
run: dotnet build --configuration Release
2026

21-
- name: Generate documentation
22-
run: doxygen Doxyfile
27+
- name: Install Doxygen and Graphviz
28+
run: sudo apt-get update && sudo apt-get install -y doxygen graphviz
2329

24-
- name: Create .nojekyll file
25-
run: touch ./docs/html/.nojekyll
30+
- name: Run Doxygen
31+
run: doxygen Doxyfile
2632

2733
- name: Deploy to GitHub Pages
28-
uses: peaceiris/actions-gh-pages@v4
34+
uses: peaceiris/actions-gh-pages@v3
2935
with:
3036
github_token: ${{ secrets.GITHUB_TOKEN }}
31-
publish_dir: ./docs/html
37+
publish_dir: ./html

0 commit comments

Comments
 (0)