name: Deploy on: push: branches: - main jobs: deploy: runs-on: ubuntu-latest name: Deploy steps: - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 - name: Add meshtastic remote to vendor/firmware run: | git remote add meshtastic git@github.com:meshtastic/firmware.git working-directory: vendor/firmware - name: Setup Bun uses: oven-sh/setup-bun@v1 with: bun-version: latest - name: Install Dependencies run: bun install - name: Build env: CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }} run: npx convex deploy --cmd 'bun run build' - name: Deploy uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} command: deploy