diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..987d9df --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: build-docs + +# Run on pull requests to verify the build succeeds +on: + pull_request: + +# Build the docs to verify they compile without errors +jobs: + build-book: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v2 + - name: Build the jupyter-book + uses: addnab/docker-run-action@v3 + with: + image: craigwillis/jupyter-book:latest + options: -v ${{ github.workspace }}:/src + run: jupyter-book build --all . diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9a8f631..dd740cf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,6 +1,6 @@ name: deploy-docs -# Only run this when the master branch changes +# Only run this when the main branch changes on: push: branches: