Skip to content

docs: init docs setup with github workflow and main page #1

docs: init docs setup with github workflow and main page

docs: init docs setup with github workflow and main page #1

Workflow file for this run

name: 📖 Publish Docs
on:
push:
paths:
- docs/**
- src/**
- mkdocs.yml
branches: [main]
# Allow manual trigger (workflow_dispatch)
workflow_dispatch:
jobs:
build_openapi_json:
uses: hotosm/gh-workflows/.github/workflows/[email protected]
with:
image: ghcr.io/${{ github.repository }}/backend:ci-${{ github.ref_name }}
example_env_file_path: ".env.sample"
output_path: docs/openapi.json
publish_docs:
uses: hotosm/gh-workflows/.github/workflows/[email protected]
needs:
- build_openapi_json
with:
openapi: true