Update the versions in the CI validation workflow #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: AsyncAPI documents processing | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
#Check out repo at the created tag | |
- name: Get tag name | |
id: get_tag_name | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ steps.get_tag_name.outputs.VERSION }} | |
#Using another action for AsyncAPI for validation | |
- name: Validating AsyncAPI document | |
uses: WaleedAshraf/[email protected] | |
with: | |
filepath: src/main/asyncapi/network_survey_messaging.yaml | |
#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-generator:2.1.13 | |
with: | |
template: '@asyncapi/[email protected]' #In case of template from npm, because of @ it must be in quotes | |
filepath: src/main/asyncapi/network_survey_messaging.yaml | |
#parameters: 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/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
folder: generated-html |