Skip to content

Commit

Permalink
build: optimize deploy more
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Apr 20, 2024
1 parent 7c36918 commit e539c6c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/cli-r2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ jobs:
- name: pnpm build
run: pnpm --filter 'webstudio-cloudlfare-template^...' run build

- name: Webstudio Build
run: pnpm webstudio build --template internal --template saas-helpers --template cloudflare --assets false
working-directory: ${{ github.workspace }}/fixtures/webstudio-cloudlfare-template

- name: Remix Build
run: pnpm build
working-directory: ${{ github.workspace }}/fixtures/webstudio-cloudlfare-template


# Ideally, execute 'pnpm deploy --prod', but @remix-run/dev doesn't support this flag.
# Despite being listed as a dependency, @remix-run/dev does not install the remix cli.
# TODO: Minimize artefact size due to frequent downloads on each publish.
Expand Down Expand Up @@ -103,14 +112,6 @@ jobs:
- name: Extract archive
run: tar --use-compress-program="zstd -d" -xf cloudlfare-template.tar.zst -C .

- name: Webstudio Build
run: pnpm webstudio build --template internal --template saas-helpers --template cloudflare --assets false
working-directory: ${{ github.workspace }}/cloudlfare-template

- name: Remix Build
run: pnpm build
working-directory: ${{ github.workspace }}/cloudlfare-template

- name: WRANGLER Build
run: |
NODE_ENV=production pnpm wrangler deploy \
Expand Down

0 comments on commit e539c6c

Please sign in to comment.