Automated build docs: 2024-08-27 02:27:10 #30
This file contains 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,prod/github_actions_push_openapi_spec_to_readme/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@v4 | |
- name: Run `openapi` command 🚀 | |
uses: readmeio/rdme@v8 | |
with: | |
# id is the id of the API definition | |
rdme: openapi defs/asana_oas.yaml --key=${{ env.README_API_KEY }} --id=64a8a031f326ee000e3a92f3 |