Update .gitea/workflows/doxygen.yaml
Some checks failed
Doxygen / Doxygen (push) Failing after 18s

This commit is contained in:
thijskamphuis 2025-01-28 22:41:57 +01:00
parent 36ec7c9dac
commit 3a0f584632

View File

@ -22,27 +22,22 @@ jobs:
run: | run: |
doxygen Doxyfile doxygen Doxyfile
- name: Move `/docs/html/` contents to a new branch - name: Move `/docs/html/` contents to web branch
run: | run: |
# Ensure a clean Git state # Ensure a clean Git state
git config --global user.name "${{ gitea.actor }}" git config --global user.name "${{ gitea.actor }}"
git config --global user.email "${{ gitea.actor }}@example.com" git config --global user.email "${{ gitea.actor }}@example.com"
git fetch origin git fetch origin
# Create the web branch
git checkout --orphan web git checkout --orphan web
git reset --hard git reset --hard
git clean -fdx git clean -fdx
# Ensure docs/html exists and copy files # Copy the contents of docs/html/ to the root
if [ -d "docs/html" ]; then cp -r docs/html/* . || exit 1
mkdir -p temp_html
cp -r docs/html/* temp_html/ || exit 1
mv temp_html/* .
rmdir temp_html
else
echo "Directory docs/html/ does not exist. Exiting."
exit 1
fi
# Commit and push to the web branch
git add . git add .
git commit -m "Update web branch with documentation" git commit -m "Update web branch with documentation"
git push origin web --force git push origin web --force