Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
IonutMuthi committed Feb 7, 2025
1 parent f30acfe commit bc7ebae
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/generate_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
run: |
if [ "${{ github.ref_name }}" != "main" ] ; then
echo "new_tag=1" >> "$GITHUB_ENV"
else
echo "new_tag=0" >> "$GITHUB_ENV"
fi
- name: Install pip packages
Expand Down Expand Up @@ -52,18 +54,22 @@ jobs:
deploy-doc:
runs-on: ubuntu-latest
needs: build-doc
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'

steps:
- uses: actions/checkout@v4
- run: |
echo ${{ github.event.head_commit.committer.name }}
echo ${{ github.event.head_commit.committer.email }}
git config --global user.name "${{ github.event.head_commit.committer.name }}"
git config --global user.email "${{ github.event.head_commit.committer.email }}"
- name: Create gh-pages branch
run: >
git ls-remote --exit-code --heads origin refs/heads/gh-pages ||
git reset --hard ;
git clean -fdx ;
git ls-remote --exit-code --heads origin refs/heads/gh-pages &&
(
git reset --hard ;
git clean -fdx ;
git fetch origin gh-pages ;
git checkout -b gh-pages origin/gh-pages ;
DOC_BUILDS=$(find . -mindepth 2 -name objects.inv -exec sh -c 'dirname {}' ';') ;
Expand All @@ -82,6 +88,7 @@ jobs:
)
- uses: actions/download-artifact@v4
if: ${{ env.new_tag == '0' }}
with:
name: html

Expand Down

0 comments on commit bc7ebae

Please sign in to comment.