Skip to content

Commit d97a089

Browse files
authored
ci: add speakeasy github workflows (#555)
* ci: add github workflows * revert stream example
1 parent 3fc9286 commit d97a089

File tree

5 files changed

+5374
-1
lines changed

5 files changed

+5374
-1
lines changed

.github/workflows/sdk_generation.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Generate
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
"on":
8+
workflow_dispatch:
9+
inputs:
10+
force:
11+
description: Force generation of SDKs
12+
type: boolean
13+
default: false
14+
schedule:
15+
- cron: 0 0 * * *
16+
jobs:
17+
generate:
18+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
19+
with:
20+
force: ${{ github.event.inputs.force }}
21+
mode: pr
22+
speakeasy_version: latest
23+
secrets:
24+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
25+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.speakeasy/workflow.lock

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
speakeasyVersion: 1.277.4
2+
sources: {}
3+
targets: {}
4+
workflow:
5+
workflowVersion: 1.0.0
6+
speakeasyVersion: latest
7+
sources:
8+
livepeer-studio-api:
9+
inputs:
10+
- location: https://raw.githubusercontent.com/livepeer/studio/sk/schema-fixes/packages/api/src/schema/api-schema.yaml
11+
overlays:
12+
- location: https://raw.githubusercontent.com/livepeer/livepeer-js/main/codeSamples.yaml
13+
output: output.yaml
14+
targets: {}

.speakeasy/workflow.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
workflowVersion: 1.0.0
2+
speakeasyVersion: latest
3+
sources:
4+
livepeer-studio-api:
5+
inputs:
6+
- location: https://raw.githubusercontent.com/livepeer/studio/sk/schema-fixes/packages/api/src/schema/api-schema.yaml
7+
overlays:
8+
- location: https://raw.githubusercontent.com/livepeer/livepeer-js/main/codeSamples.yaml
9+
output: output.yaml
10+
targets: {}

mint.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
"raiseIssue": true,
323323
"thumbsRating": true
324324
},
325-
"openapi": "https://raw.githubusercontent.com/livepeer/studio/master/packages/api/src/schema/api-schema.yaml",
325+
"openapi": "output.yaml",
326326
"api": {
327327
"baseUrl": "https://livepeer.studio/api"
328328
},

0 commit comments

Comments
 (0)