Skip to content

Commit

Permalink
Merge pull request #59 from highmobility/deploy-docs
Browse files Browse the repository at this point in the history
build and push docs
  • Loading branch information
slashmili authored Nov 29, 2023
2 parents b95ed00 + dda9790 commit ae87fd5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -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/
3 changes: 3 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<html>
<meta http-equiv="refresh" content="0; url=v1/" />
</html>

0 comments on commit ae87fd5

Please sign in to comment.