-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.19 KB
/
deploy-page.yml
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
name: Deploy page
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "asyncapi.yml"
jobs:
deploy-page:
runs-on: ubuntu-latest
steps:
#"standard step" where repo needs to be checked-out first
- name: Checkout 🛎️
uses: actions/checkout@v3
#Using another action for AsyncAPI for validation
- name: Validate asyncapi.yml ✅
uses: WaleedAshraf/[email protected]
with:
filepath: asyncapi.yml
#In case you do not want to use defaults, you for example want to use different template
- name: Generate HTML from asyncapi.yml 📄
uses: docker://asyncapi/github-action-for-generator:2.1.7
with:
template: "@asyncapi/[email protected]" #In case of template from npm, because of @ it must be in quotes
filepath: asyncapi.yml
parameters: baseHref=/api/ sidebarOrganization=byTags #space separated list of key/values
output: generated-html
#Using another action that takes generated HTML and pushes it to GH Pages
- name: Deploy page 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: generated-html