Skip to content

Update materialSample.yml #221

Update materialSample.yml

Update materialSample.yml #221

name: Build and Deploy OpenAPI Specs
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- name: building using redoc-cli
run: |
npx redoc-cli bundle schema/natural-history-collection-api.yml -o redoc/index.html
- name: Deploy GitHub Pages (only on master branch)
if: ${{ github.ref == 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: redoc