Skip to content

Run builds on every push, but push to Production or Sandbox #92

Run builds on every push, but push to Production or Sandbox

Run builds on every push, but push to Production or Sandbox #92

Workflow file for this run

name: Sync OAS to ReadMe
on:
push:
env:
ENVIRONMENT: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Sandbox' }}
jobs:
rdme-openapi:
runs-on: ubuntu-latest
environment: $ENVIRONMENT
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Upload Autosuggest API to Readme
uses: readmeio/rdme@v8
with:
rdme:
openapi discovery/autosuggest.yaml --key=${{ secrets.RDME_API_KEY }} --id=${{ vars.AUTOSUGGEST_ID }} --version=${{ vars.DOCS_VERSION }}
- name: Upload Bestseller API to Readme
uses: readmeio/rdme@v8
with:
rdme:
openapi discovery/bestseller.yaml --key=${{ secrets.RDME_API_KEY }} --id=${{ vars.BESTSELLER_ID }} --version=${{ vars.DOCS_VERSION }}
- name: Upload Content Search API to Readme
uses: readmeio/rdme@v8
with:
rdme:
openapi discovery/content-search.yaml --key=${{ secrets.RDME_API_KEY }} --id=${{ vars.CONTENT_SEARCH_ID }} --version=${{ vars.DOCS_VERSION }}
- name: Upload Recommendations & Pathways API to Readme
uses: readmeio/rdme@v8
with:
rdme:
openapi discovery/recommendations-pathways.yaml --key=${{ secrets.RDME_API_KEY }} --id=${{ vars.RECS_PATHWAYS_ID }} --version=${{ vars.DOCS_VERSION }}
- name: Upload Search & Category API to Readme
uses: readmeio/rdme@v8
with:
rdme:
openapi discovery/search-category.yaml --key=${{ secrets.RDME_API_KEY }} --id=${{ vars.SEARCH_CATEGORY_ID }} --version=${{ vars.DOCS_VERSION }}
- name: Upload Email Widget API to Readme
uses: readmeio/rdme@v8
with:
rdme:
openapi discovery/email-spec.yaml --key=${{ secrets.RDME_API_KEY }} --id=${{ vars.EMAIL_RECS_ID }} --version=${{ vars.DOCS_VERSION }}