Skip to content

Commit

Permalink
Merge pull request #10 from canonical/openapi-html-only-on-main
Browse files Browse the repository at this point in the history
Only run OpenAPI schema generator on main
  • Loading branch information
mz2 authored Jan 23, 2024
2 parents e824191 + fe5c663 commit ba13ae4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/openapi_gh_pages.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Publish OpenAPI on GitHub Pages
on:
pull_request:
branches:
- main
push:
branches:
- main
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ poetry install
poetry run uvicorn hi_api.main:app --reload
```

## View OpenAPI schema for the server

A HTML view of the OpenAPI schema matching the `main` branch is viewable at
[canonical.github.io/hardware-api](https://canonical.github.io/hardware-api)

## Build and run the reference CLI tool (`hwctl`)

```bash
Expand Down

0 comments on commit ba13ae4

Please sign in to comment.