fix: improve error handling #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Documentation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
documentation: | |
# Prevent circular workflow run | |
if: "!contains(github.event.pusher.name, 'emnify-gha')" | |
name: Generate and publish Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.12.1 | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v4 | |
- name: Prepare doc-gen | |
run: docker build . -f docs/Dockerfile.dev -t emnify/python-sdk-docs | |
- name: Run doc-gen | |
run: docker run -t -v $(pwd):/docs emnify/python-sdk-docs | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/build_sphinx |