docs: define package implementation sequence #30
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: 🛠️ Build & Deploy to Cloudflare Workers | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| deployments: write | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📥 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: ⚡️ Setup Vite+ | |
| uses: voidzero-dev/setup-vp@v1 | |
| with: | |
| cache: true | |
| - name: 🚀 Build docs (VitePress) | |
| run: vp run docs:build | |
| - name: ☁️ Deploy Worker | |
| # Worker name and custom domain are pinned in wrangler.jsonc so a | |
| # repository rename can never redirect deploys to a new worker. | |
| run: vpx wrangler deploy --config wrangler.jsonc | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} |