Skip to content

Commit b18a093

Browse files
author
TheDevConnor
committed
Maybe now I love workflows
1 parent f27370f commit b18a093

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

.github/workflows/doxygen.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013
runs-on: ubuntu-latest
@@ -19,6 +22,9 @@ jobs:
1922
- name: Run Doxygen
2023
run: doxygen Doxyfile
2124

25+
- name: Verify Doxygen output
26+
run: ls -la docs/doxygen/
27+
2228
- name: Deploy to GitHub Pages
2329
uses: peaceiris/actions-gh-pages@v3
2430
with:
@@ -28,16 +34,6 @@ jobs:
2834
user_name: 'github-actions[bot]'
2935
user_email: 'github-actions[bot]@users.noreply.github.com'
3036
commit_message: 'Update Doxygen documentation'
31-
keep_files: false # DON'T keep previous files
32-
force_orphan: true # Optional: force orphan branch for fresh history
33-
enable_jekyll: false # No Jekyll on gh-pages
34-
35-
- name: Enable GitHub Pages via API
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
run: |
39-
curl -X POST \
40-
-H "Authorization: token $GITHUB_TOKEN" \
41-
-H "Accept: application/vnd.github.v3+json" \
42-
https://api.github.com/repos/${{ github.repository }}/pages \
43-
-d '{"source":{"branch":"gh-pages","path":"/"}}'
37+
keep_files: false
38+
force_orphan: true
39+
enable_jekyll: false

0 commit comments

Comments
 (0)