Skip to content

merge github-auto-commit- action from 4 to 5, github-tag-action from … #71

merge github-auto-commit- action from 4 to 5, github-tag-action from …

merge github-auto-commit- action from 4 to 5, github-tag-action from … #71

Workflow file for this run

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