feat(web): sidebar collection ui #775
This file contains 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 Worker | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- remix | |
paths: | |
- apps/frontend/web/** | |
- packages/worker/** | |
- packages/anitomy/** | |
- packages/animegarden/** | |
jobs: | |
worker: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: pnpm | |
- name: Install | |
run: pnpm install | |
- name: Build | |
run: pnpm build | |
- name: Deploy | |
run: pnpm -C packages/worker run deploy | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} | |
web: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/remix' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: pnpm | |
- name: Install | |
run: pnpm install | |
- name: Build | |
run: pnpm build:web | |
env: | |
SSR_ADAPTER: cloudflare | |
- name: Deploy | |
run: pnpm -C apps/frontend/web run deploy:worker | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} |