Skip to content

Automated build docs: 2025-12-16 12:55:12 #161

Automated build docs: 2025-12-16 12:55:12

Automated build docs: 2025-12-16 12:55:12 #161

name: Build and sync docs on pushes to master branch
on:
push:
branches:
- master
defaults:
run:
shell: bash
permissions:
id-token: write
jobs:
rdme-openapi-pr:
runs-on: ubuntu-latest
steps:
- name: Authenticate to AWS
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::403483446840:role/autogen_github_actions_beta_push_openapi_spec_to_readme
- name: Load secrets
uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
secret-ids: README_API,readme_api_key
# readme_api_key secret is stored as {key:"***..."}.
# GitHub Actions environment variable name is README_API so to access "key" from the json we can use README_API_KEY
parse-json-secrets: true
- name: Check out repo πŸ“š
uses: actions/checkout@v5
- name: Set up Python 🐍
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Python dependencies πŸ“¦
run: |
python -m pip install --upgrade pip
pip install pyyaml
- name: Convert YAML to JSON πŸ”„
run: python convert_yaml_to_json.py
- name: Run `openapi` command πŸš€
uses: readmeio/rdme@v10
with:
# id is the id of the API definition
rdme: openapi upload defs/asana_oas.json --key=${{ env.README_API_KEY }} --slug=asana