Merge pull request #615 from open5e/staging #36
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
# This GitHub Actions workflow was auto-generated by the `rdme` cli on 2023-03-25T21:55:45.320Z | |
# You can view our full documentation here: https://docs.readme.com/docs/rdme | |
name: ReadMe GitHub Action 🦉 | |
on: | |
push: | |
branches: | |
# This workflow will run every time you push code to the following branch: `main` | |
# Check out GitHub's docs for more info on configuring this: | |
# https://docs.github.com/actions/using-workflows/events-that-trigger-workflows | |
- main | |
jobs: | |
rdme-openapi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: install pipenv | |
run: | | |
pip install pipenv | |
- name: install dependencies | |
run: | | |
pipenv install | |
- name: build oas file | |
run: | | |
pipenv run python manage.py spectacular --file openapi-schema.yml | |
- name: Run `openapi` command for v1🚀 | |
uses: readmeio/rdme@v8 | |
with: | |
rdme: openapi openapi-schema.yml --key=${{ secrets.README_API_KEY }} --id=6715b7fb7960ee004eb4a8cf |