-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add actions for triggering the external build.
Signed-off-by: Frank Ralf <[email protected]>
- Loading branch information
Showing
3 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
9 changes: 5 additions & 4 deletions
9
.github/workflows/antora-test.yml → .github/workflows/antora-build-basic.yml
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Full Antora documentation build | ||
# Based on OSI configuration https://github.com/OpenSimulationInterface/osi-documentation/blob/master/.github/workflows/antora-build.yml | ||
on: | ||
push: | ||
branches: [ main, antora-test ] | ||
pull_request: | ||
branches: [ main ] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
trigger_antora: | ||
name: Trigger OpenMATERIAL Antora generator | ||
|
||
runs-on: Ubuntu-latest | ||
|
||
env: | ||
MUP_KEY: ${{ secrets.ANTORA_DISPATCH }} | ||
|
||
steps: | ||
- name: Trigger generator | ||
if: ${{ env.MUP_KEY != '' }} | ||
uses: peter-evans/repository-dispatch@v3 | ||
with: | ||
token: ${{ secrets.ANTORA_DISPATCH }} | ||
event-type: antora-build-trigger | ||
repository: asam-ev/openmaterial-antora-generator | ||
client-payload: '{"src": "${{ github.repository }}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "head_ref": "${{ github.head_ref }}"}' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Validate JSON schema files | ||
# Source: https://github.com/nhalstead/validate-json-action | ||
# Forked from: https://github.com/marketplace/actions/validate-json | ||
name: Validate JSON schemas for assets and materials | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'examples/**' | ||
- 'schemas/**' | ||
|
||
jobs: | ||
json-schema-validation: | ||
name: JSON schema validation | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Validate "asset" JSON schemas | ||
uses: nhalstead/[email protected] | ||
with: | ||
schema: ./schemas/asset_schema.json | ||
jsons: ./examples/*.xoma | ||
|
||
- name: Validate "material" JSON schemas | ||
uses: nhalstead/[email protected] | ||
with: | ||
schema: ./schemas/material_schema.json | ||
jsons: ./examples/*.xomp | ||
|