diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml new file mode 100644 index 0000000..066e02a --- /dev/null +++ b/.github/workflows/deploy-docs.yml @@ -0,0 +1,23 @@ +name: Deploy Docs + +on: + push: + branches: + - main + +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/ diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..ffb7cb3 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,3 @@ + + +