Skip to content

Commit

Permalink
Create gh pages branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacquwes committed Sep 28, 2023
1 parent d16b2c3 commit 9570ad2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,23 @@ jobs:
- name: Run doxygen
run: doxygen doxyfile

- name: gh-pages branch creation if needed
id: gh-pages-branch-creation
shell: bash
run: |
echo "::group::Checking if gh-pages branch exists"
if [[ -z $(git ls-remote --heads origin gh-pages) ]]; then
echo "Creating gh-pages branch"
git checkout --orphan gh-pages
git reset --hard
git commit --allow-empty -m "First commit to create gh-pages branch"
git push origin gh-pages
echo "Created gh-pages branch"
else
echo "Branch gh-pages already exists"
fi
echo "::endgroup::"
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
Expand Down

0 comments on commit 9570ad2

Please sign in to comment.