fix(editor): restore TWEET extension data when editing an echo #6
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
| # Deploy hub/ (Vue + Vite PWA) to Cloudflare Workers Static Assets -> hub.ech0.app | |
| # hub imports from ../web/src (vite alias) and its prebuild runs | |
| # `npm install --prefix ../web`, so the full repo checkout + web/ must be present. | |
| name: Deploy hub | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "hub/**" | |
| - "web/**" | |
| - ".github/workflows/deploy-hub.yml" | |
| workflow_dispatch: | |
| concurrency: | |
| group: deploy-hub-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| deployments: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 25 | |
| cache: "pnpm" | |
| cache-dependency-path: "hub/pnpm-lock.yaml" | |
| - name: Install hub deps | |
| working-directory: hub | |
| run: pnpm install --frozen-lockfile | |
| # `pnpm build` runs the prebuild step, which generates SEO assets and | |
| # installs ../web (via `npm install --prefix ../web`) so vue-tsc can | |
| # resolve the ../web/src imports. | |
| - name: Build | |
| working-directory: hub | |
| run: pnpm build | |
| # Deploy as a Workers Static Assets project (config in hub/wrangler.jsonc). | |
| - name: Deploy to Cloudflare Workers | |
| working-directory: hub | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| run: pnpm dlx wrangler@4 deploy |