Skip to content

Update main.yml

Update main.yml #510

Workflow file for this run

name: AsyncAPI documents processing
on:
push:
branches: [ master ]
jobs:
generate:
runs-on: ubuntu-latest
steps:
#"standard step" where repo needs to be checked-out first
- name: Checkout repo
uses: actions/checkout@v4
- name: validate
uses: Shurtu-gal/github-action-for-generator@9f1451d26d8f942158f2042bac4cb89a878d4e65
with:
command: validate
#In case all defaults are fine for you, just add such step
- name: Generating Markdown from my AsyncAPI document
uses: Shurtu-gal/github-action-for-generator@9f1451d26d8f942158f2042bac4cb89a878d4e65
#uses: docker://asyncapi/github-action-for-generator:2.1.12
#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: Shurtu-gal/github-action-for-generator@9f1451d26d8f942158f2042bac4cb89a878d4e65
with:
template: '@asyncapi/[email protected]'
filepath: docs/api/my-asyncapi.yml
parameters: --force-write -p pdf=true baseHref=/test-experiment/ sidebarOrganization=byTags
output: generated-html
- name: Checking if stuff are available outside container
run: echo "===" && ls && echo "===" && ls generated-html && echo "==="
#Using another action that takes generated HTML and pushes it to GH Pages
- name: Deploy GH page
uses: JamesIves/[email protected]
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: generated-html