-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 911 Bytes
/
publlic-ghpages.yaml
File metadata and controls
38 lines (31 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: AsyncAPI documents processing
on:
push:
branches: [ main ]
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
- name: Install dependencies
run: |
npm install -g @asyncapi/cli@6.0.0
- name: Generate HTML docs from AsyncAPI spec
run: |
npx asyncapi generate \
fromTemplate ./lobby-to-client/v1/asyncapi.yml \
@asyncapi/html-template@3.5.5 \
-o ./output \
--param outFilename=index.html \
--param singleFile=true
- name: Deploy GH page
uses: JamesIves/github-pages-deploy-action@v4
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: ./output