Integrate this automated step into your repository's GitLab CI or GitHub Actions to push updated documentation every time a release tag is pushed:
# .gitlab-ci.yml
publish_docs:
stage: deploy
only:
- tags
script:
- cd docs && zip -r ../docs-bundle.zip . && cd ..
- curl -f -X POST "https://docs.octeka.com/api/v1/packages/{{ currentPackage ? currentPackage.slug : 'my-package' }}/versions/$CI_COMMIT_TAG/publish" \
-H "X-Api-Key: $ALEXANDRIA_API_KEY" \
-F "bundle=@docs-bundle.zip" \
-F "isLatest=true"