feat: 5 new components, charts-first ordering, dist untracked from git #17
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' | |
| 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 |