-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 2.28 KB
/
issue.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
38
39
40
41
42
43
44
45
46
47
name: AsyncAPI documents processing
on: push
permissions:
contents: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
#"standard step" where repo needs to be checked-out first
- name: Checkout repo
uses: actions/checkout@v2
#In case you do not want to use defaults, you for example want to use different template
- name: Generating HTML from my AsyncAPI document with custom template
uses: asyncapi/github-action-for-cli@v3.0.1 #always use latest tag as each is pushed to docker
with:
template: '@asyncapi/html-template@0.15.4' #In case of template from npm, because of @ it must be in quotes
filepath: docs/api/my-asyncapi.yml
parameters: --force-write -p baseHref=/test-experiment/ sidebarOrganization=byTags #space separated list of key/values
output: generated-html
continue-on-error: true
- name: Generating HTML from my AsyncAPI document with custom template
uses: asyncapi/github-action-for-cli@e050f87a210f4569626232c6399b22d9b38d3367 #always use latest tag as each is pushed to docker
with:
template: '@asyncapi/html-template@0.15.4' #In case of template from npm, because of @ it must be in quotes
filepath: docs/api/my-asyncapi.yml
parameters: --force-write -p baseHref=/test-experiment/ sidebarOrganization=byTags #space separated list of key/values
output: generated-html
continue-on-error: true
#In case you do not want to use defaults, you for example want to use different template
- name: Generating HTML from my AsyncAPI document
uses: docker://asyncapi/github-action-for-cli:latest #always use latest tag as each is pushed to docker
with:
template: '@asyncapi/html-template@0.15.4' #In case of template from npm, because of @ it must be in quotes
filepath: docs/api/my-asyncapi.yml
parameters: --force-write -p baseHref=/test-experiment/ 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 GH page
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
folder: generated-html
branch: gh-pages
token: ${{ secrets.GITHUB_TOKEN }}