Skip to content

build and push docs

build and push docs #2

Workflow file for this run

name: Deploy Docs
on:
push:
branches:
- main
- deploy-docs
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docs
run: |
mkdir -p docs/v1
npx --yes @redocly/cli join hm-oauth-rest-v1.yml hm-vehicle-data-api-v1.yml hm-fleet-clearance-v1.yml hm-eligibility-v1.yml -o hm-apis.yaml
npx @redocly/cli build-docs --disableGoogleFont --output=docs/v1/index.html hm-apis.yaml
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/