Automated build docs: 2025-12-16 12:55:12 #161
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |