Skip to content

feat: 5 new components, charts-first ordering, dist untracked from git #17

feat: 5 new components, charts-first ordering, dist untracked from git

feat: 5 new components, charts-first ordering, dist untracked from git #17

Workflow file for this run

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'
release:
types: [published]
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@v6
- 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