Fixed webhooks text #97
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: Sync OAS to ReadMe (prod) | |
on: | |
push: | |
branches: | |
- master | |
- main | |
jobs: | |
sync-openapi-to-readme-prod: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '21.x' | |
- run: npm install -g json-refs | |
- run: json-refs resolve --yaml -f --filter relative ./src/fire-business-api-v1.yaml > ./fire-business-api-v1.yaml | |
- uses: readmeio/rdme@9.0.0 | |
with: | |
rdme: openapi ./fire-business-api-v1.yaml --key=${{ secrets.README_API_KEY }} --id=6136360239a7a64894f1c269 | |
# 6136360239a7a64894f1c269 is the _id for the v1.0 version. Got this from the ReadMe https://dash.readme.com/project/fire-business-api/v1.0/reference | |
sync-guide-docs-to-readme-prod: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: readmeio/rdme@9.0.0 | |
with: | |
rdme: docs guides --key=${{ secrets.README_API_KEY }} --version=v1.0 | |