Docset Sync #120
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: Docset Sync | |
| on: | |
| push: | |
| branches: [main] | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| sync-dash: | |
| name: Sync Dash Docsets | |
| if: github.repository == 'zealdocs/backend' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1" | |
| - name: Install Dependencies | |
| run: bun install | |
| - name: Clone Dash Repositories | |
| run: | | |
| git clone https://github.com/Kapeli/feeds.git build/feeds | |
| git clone https://github.com/Kapeli/Dash-X-Platform-Resources.git build/resources | |
| - name: Deploy to Vercel | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| bun install --global vercel | |
| vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | |
| vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | |
| # Emit generated data as static files; the Elysia preset only bundles public/ into the function. | |
| mkdir -p .vercel/output/static | |
| cp -r public/. .vercel/output/static/ | |
| vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} |