enh: set GHA workflow to work on ubuntu
@@ -11,17 +11,12 @@ on:
jobs:
build:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
- runs-on: docker.pkg.github.com/nipreps-containers/miniconda/miniconda:py38_1.3.2
+ runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- with:
- ssh-key: "${{ secrets.NIPREPS_DEPLOY }}"
- fetch-depth: 0
- - uses: ammaraskar/sphinx-action@master
- with:
- docs-folder: "docs/"
- build-command: |
+ - name: Determine current branch/tag name
+ run: |
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
CURBRANCH=${GITHUB_REF##*/}
elif [[ "$GITHUB_REF" == refs/heads/* ]]; then
@@ -29,4 +24,11 @@ jobs:
fi
# Remove forward slashes
CURBRANCH=$( echo $CURBRANCH | sed 's+/+_+g' )
- make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" CURBRANCH="${CURBRANCH:-html}" html
+ echo "CURBRANCH=${CURBRANCH}" >> ${GITHUB_ENV}
+ echo "Building branch/tag ${CURBRANCH:-<unkwown>}"
+
+ - uses: ammaraskar/sphinx-action@master
+ with:
+ docs-folder: "docs/"
+ pre-build-command: apt-get update -y && apt-get install -y graphviz
+ build-command: make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" CURBRANCH="${CURBRANCH:-html}" html
