Skip to content

Commit 03360e7

Browse files
committed
ci: publish openapi to scalar, sync version
1 parent 43180ce commit 03360e7

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish OpenAPI to Scalar Registry
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
paths:
10+
- "openapi.yml"
11+
workflow_dispatch:
12+
13+
jobs:
14+
publish:
15+
uses: SiaFoundation/workflows/.github/workflows/publish-openapi.yml@master
16+
with:
17+
slug: renterd
18+
spec_path: openapi.yml
19+
secrets:
20+
SCALAR_API_KEY: ${{ secrets.SCALAR_API_KEY }}

.github/workflows/openapi-sync.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Sync OpenAPI Versions
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
7+
on:
8+
release:
9+
types: [published, edited]
10+
workflow_dispatch:
11+
12+
jobs:
13+
sync:
14+
uses: foundation/workflows/.github/workflows/sync-openapi-version.yml@master
15+
with:
16+
spec_path: openapi.yml

0 commit comments

Comments
 (0)