-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 952 Bytes
/
publlic-ghpages.yaml
File metadata and controls
40 lines (33 loc) · 952 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
39
40
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
cache: 'npm'
- name: Install dependencies
run: |
npm install -g @asyncapi/cli
- name: Generate HTML docs from AsyncAPI spec
run: >
npx asyncapi generate
fromTemplate ./lobby-to-client/v1/asyncapi.yml
@asyncapi/html-template@3.3.1
-o ./output
--param outFilename=index.html
--param singleFile=true
--use-new-generator
- name: Deploy GH page
uses: JamesIves/github-pages-deploy-action@v4
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: ./output