Skip to content

Instantly share code, notes, and snippets.

@epintos
Created August 14, 2020 09:45
Show Gist options
  • Save epintos/32ef04a41a506d056dc9b3aae788af9f to your computer and use it in GitHub Desktop.
Save epintos/32ef04a41a506d056dc9b3aae788af9f to your computer and use it in GitHub Desktop.
Apiary Github Action
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