Skip to content

feat(billing): add organization_name and project_name to FinOpsApi's … #3059

feat(billing): add organization_name and project_name to FinOpsApi's …

feat(billing): add organization_name and project_name to FinOpsApi's … #3059

Workflow file for this run

name: Generate documentation
permissions:
contents: read
on:
push:
branches:
- main
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.13"
cache: 'poetry'
- name: Set up cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ./source
key: 'sphinx-source-cache'
- name: Install dependencies and library
run: poetry install --no-root
- name: Generate documentation sources
run: |
poetry run sphinx-apidoc -f -o ./source ../scaleway-core
poetry run sphinx-apidoc -f -o ./source ../scaleway
poetry run sphinx-apidoc -f -o ./source ../scaleway-async
- name: Generate documentation
run: poetry run sphinx-build -j auto -b html ./ ./_build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: docs
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build
force_orphan: true