-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also uploaded the APIs to Readme and added the required secrets to the Github repository settings.
- Loading branch information
Showing
1 changed file
with
38 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,43 @@ | ||
# For info on getting the latest rdme version and obtaining your API_DEFINITION_ID, | ||
# see our docs: https://docs.readme.com/docs/rdme#example-syncing-an-openapi-definition | ||
name: Sync OAS to ReadMe | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: readmeio/[email protected] | ||
with: | ||
rdme: openapi discovery/email_spec.yaml --key=${{ secrets.API_KEY_SANDBOX }} --id=${{ secrets.EMAIL_RECS_ID }} | ||
|
||
jobs: | ||
rdme-openapi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo 📚 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Upload Autosuggest API to Readme | ||
uses: readmeio/rdme@v8 | ||
with: | ||
rdme: openapi discovery/autosuggest.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.AUTOSUGGEST_ID }} | ||
|
||
- name: Upload Bestseller API to Readme | ||
uses: readmeio/rdme@v8 | ||
with: | ||
rdme: openapi discovery/bestseller.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.BESTSELLER_ID }} | ||
|
||
- name: Upload Content Search API to Readme | ||
uses: readmeio/rdme@v8 | ||
with: | ||
rdme: openapi discovery/content-search.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.CONTENT_SEARCH_ID }} | ||
|
||
- name: Upload Recommendations & Pathways API to Readme | ||
uses: readmeio/rdme@v8 | ||
with: | ||
rdme: openapi discovery/recommendations-pathways.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.RECS_PATHWAYS_ID }} | ||
|
||
- name: Upload Search & Category API to Readme | ||
uses: readmeio/rdme@v8 | ||
with: | ||
rdme: openapi discovery/search-category.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.SEARCH_CATEGORY_ID }} | ||
|
||
- name: Upload Email Widget API to Readme | ||
uses: readmeio/rdme@v8 | ||
with: | ||
rdme: openapi discovery/email-spec.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.EMAIL_RECS_ID }} |