Created
August 14, 2020 09:45
-
-
Save epintos/32ef04a41a506d056dc9b3aae788af9f to your computer and use it in GitHub Desktop.
Apiary Github Action
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: Deploy API Documentation | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy-doc-apiary: | |
name: Push API doc to Apiary | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
- run: gem install apiaryio | |
- run: apiary publish --api-name="YOUR-API-NAME" --path="YOUR-OPEN-API-LOCAL-FILE" | |
env: | |
APIARY_API_KEY: YOUR-API-KEY # Generate it here: https://login.apiary.io/tokens |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment