Skip to content

Commit

Permalink
fix: configuration of the sphinx-action
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Oct 14, 2021
1 parent 69af687 commit cea09b9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/builddocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,19 @@ jobs:
run: |
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
CURBRANCH=${GITHUB_REF##*/}
elif [[ "$GITHUB_REF" == refs/pull/* ]]; then
CURBRANCH=${GITHUB_REF%/*}
CURBRANCH=${CURBRANCH##*/}
elif [[ "$GITHUB_REF" == refs/heads/* ]]; then
CURBRANCH=${GITHUB_REF##*/}
fi
if [ "$CURBRANCH" == "" ] && [[ "$GITHUB_BASE_REF" == refs/heads/* ]]; then
CURBRANCH=${GITHUB_BASE_REF##*/}
fi
# Remove forward slashes
CURBRANCH=$( echo $CURBRANCH | sed 's+/+_+g' )
echo "Building branch/tag ${CURBRANCH:-<unkwown>}, from git ref <$GITHUB_REF>"
echo "CURBRANCH=${CURBRANCH}" >> ${GITHUB_ENV}
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
build-command: make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" CURBRANCH="${CURBRANCH:-html}" html
docs-folder: "."
build-command: make -C docs/ PYTHONPATH="${GITHUB_WORKSPACE}" SPHINXOPTS="-W" BUILDDIR="$HOME/docs" CURBRANCH="${CURBRANCH:-html}" html

0 comments on commit cea09b9

Please sign in to comment.