Skip to content

Commit 9bd5e37

Browse files
authored
Merge pull request #280 from SiaFoundation/pj/docs
Add OpenAPI spec
2 parents b5e0143 + 90d4b8b commit 9bd5e37

File tree

3 files changed

+2717
-0
lines changed

3 files changed

+2717
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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: explored
18+
spec_path: openapi.yml
19+
docs_slug: explored
20+
secrets:
21+
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: SiaFoundation/workflows/.github/workflows/sync-openapi-version.yml@master
15+
with:
16+
spec_path: openapi.yml

0 commit comments

Comments
 (0)