Skip to content

Commit

Permalink
build properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhravya committed Mar 31, 2024
1 parent 0740809 commit 7565814
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/actions/buildextension/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ runs:

- name: Pack extension
working-directory: apps/extension/dist
run: zip -r ../../extension-${{ github.sha }}.zip *
run: zip -r extension-${{ github.sha }}.zip *
shell: bash

- name: Upload extension archive
uses: actions/upload-artifact@v3
with:
name: extension-${{ github.sha }}
path: extension-${{ github.sha }}.zip
path: apps/extensions/dist/extension-${{ github.sha }}.zip
21 changes: 16 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,21 @@ jobs:
with:
bun-version: latest

- name: Deploy to Cloudflare Workers with Wrangler
uses: cloudflare/[email protected]
- name: Install packages
run: bun i
shell: bash

- name: Build app
run: bun run build
working-directory: apps/web
shell: bash

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
packageManager: bun
workingDirectory: apps/web
command: bun run build
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
directory: apps/web/.vercel/output/static
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
branch: main

0 comments on commit 7565814

Please sign in to comment.