Merge pull request #1649 from buildtesters/fix_raise_exception #873
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: Schema Documentation | |
on: | |
push: | |
branches: | |
- devel | |
jobs: | |
jsonschemadocs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '14' | |
- name: jsonschema2md install | |
run: | | |
npm install -g @adobe/jsonschema2md | |
jsonschema2md -d buildtest/schemas/ -o schema_docs/ | |
- name: Upload Schema Docs | |
uses: actions/upload-artifact@v3 | |
with: | |
name: schemadocs | |
path: schema_docs/ | |
- name: Upload Schemas | |
uses: actions/upload-artifact@v3 | |
with: | |
name: schemafiles | |
path: buildtest/schemas/*.schema.json | |
- name: Upload Schemas Examples | |
uses: actions/upload-artifact@v3 | |
with: | |
name: schemaexamples | |
path: buildtest/schemas/examples | |
DeployPages: | |
needs: jsonschemadocs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
# If you're using actions/checkout@v4 you must set persist-credentials | |
# to false in most cases for the deployment to work correctly. | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Download Schemas | |
uses: actions/download-artifact@v3 | |
with: | |
name: schemafiles | |
path: downloads/schemas | |
- name: Download Schema Examples | |
uses: actions/download-artifact@v3 | |
with: | |
name: schemaexamples | |
path: downloads/examples | |
- name: Download Schema Docs | |
uses: actions/download-artifact@v3 | |
with: | |
name: schemadocs | |
path: downloads/schemadocs | |
- name: Display content of downloaded directory | |
run: | | |
ls -R downloads | |
- name: Deploy to GitHub Pages 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
# ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
branch: gh-pages | |
folder: downloads | |
target-folder: pages | |
clean: true |