Skip to content

Instantly share code, notes, and snippets.

@epintos
Created August 14, 2020 09:45

Revisions

  1. epintos revised this gist Aug 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion main.yml
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ name: Deploy API Documentation
    on:
    push:
    branches:
    - open-api
    - master

    jobs:
    deploy-doc-apiary:
  2. epintos created this gist Aug 14, 2020.
    20 changes: 20 additions & 0 deletions main.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    name: Deploy API Documentation

    on:
    push:
    branches:
    - open-api

    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