Skip to content

Commit

Permalink
feat(SDK): Publish the OpenAPI spec as a release artifact (#1317)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiroy committed Mar 12, 2024
1 parent 9658d77 commit 31d51ce
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/releases.yml
Expand Up @@ -107,24 +107,14 @@ jobs:
fetch-depth: 0
- name: Setup Env
uses: ./.github/actions/env
- name: Generate SDK
- name: Generate OpenAPI final specification
run: >
earthly
--allow-privileged
--secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY
./releases+sdk-generate-all --version=${{github.ref_name}}
env:
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
- name: Publish SDK
earthly +build-final-spec --version=${{github.ref_name}}
- name: Add the OpenAPI file to the release assets
run: >
earthly
--allow-privileged
--secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY
--secret GITHUB_TOKEN=$GITHUB_TOKEN
./releases+sdk-publish-all --version=${{github.ref_name}}
gh release upload ${{github.ref_name}} ./releases/build/generate.json#openapi.json
env:
GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }}
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Helm:
runs-on: "ubuntu-latest"
Expand Down

0 comments on commit 31d51ce

Please sign in to comment.