From dda9790e5d023554fd9d26386b348a75ca194af1 Mon Sep 17 00:00:00 2001 From: Milad Date: Wed, 29 Nov 2023 21:05:18 +0100 Subject: [PATCH] build and push docs --- .github/workflows/deploy-docs.yml | 23 +++++++++++++++++++++++ docs/index.html | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/deploy-docs.yml create mode 100644 docs/index.html 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 @@ + + +