chore(spec): refresh the API spec #107
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy demo to GitHub Pages | |
| # Deploys apps/docs/ to https://roxyapi.github.io/ui/ on every push to main and | |
| # on each published release. | |
| on: | |
| push: | |
| branches: [main] | |
| # dist is gitignored and rebuilt inside this workflow, so trigger on the | |
| # source that feeds the build, not on build output. | |
| paths: | |
| - 'apps/docs/**' | |
| - 'packages/ui/src/**' | |
| - 'specs/openapi.json' | |
| - 'scripts/**' | |
| - '.github/workflows/pages.yml' | |
| # No `release: [published]` trigger. It looked like it covered releases and | |
| # never fired once: GitHub does not start a workflow from an event created | |
| # with the default GITHUB_TOKEN, and release.yml creates the Release with | |
| # exactly that token. Releases now deploy Pages from inside the release.yml | |
| # `deploy-pages` job, which shares this concurrency group. | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun install --frozen-lockfile | |
| - name: Build the library | |
| run: bun run build | |
| # build.ts syncs packages/ui/dist into apps/docs/dist so the | |
| # site directory is self-contained and matches the local preview. | |
| - uses: actions/configure-pages@v6 | |
| with: | |
| enablement: true | |
| - uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: apps/docs | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v5 |