Skip to content

Commit

Permalink
testing a fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Aug 5, 2024
1 parent eaae6da commit cad7902
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:
build-jekyll:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
fetch-depth: 0

- name: Setup Pages
uses: actions/configure-pages@v5
Expand All @@ -42,9 +45,10 @@ jobs:
runs-on: ubuntu-latest
needs: build-jekyll
steps:
- name: Checkout Code
- name: Checkout gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
fetch-depth: 0

- name: Install Doxygen and Dependencies
Expand All @@ -53,13 +57,14 @@ jobs:
- name: Generate Doxygen Documentation
run: |
branches=("master:core" "duo" "handle" "orbit" "gloves" "desktop" "spark" "chromadeck")
rm -rf docs || true
mkdir -p docs # Ensure the docs directory is clean and prepared
for item in "${branches[@]}"; do
IFS=':' read -r branch dest <<< "$item"
dest="${dest:-$branch}"
# Ensure the output directory exists
mkdir -p docs/$dest
# Checkout each branch and generate documentation
echo "Checking out branch: $branch"
git checkout $branch
Expand Down

0 comments on commit cad7902

Please sign in to comment.