Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

ci: combine two deploy triggers into one

Brad Barbin62302e38894b
diff --git a/.github/workflows/functions.yml b/.github/workflows/functions.yml
deleted file mode 100644
index 0f54d9fd07..0000000000
--- a/.github/workflows/functions.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-name: Deploy Edge Functions
-on:
- push:
- branches: [main]
- paths: ["packages/database/supabase/functions/**"]
-
-jobs:
- dispatch:
- name: Dispatch
- runs-on: ubuntu-latest
- strategy:
- matrix:
- repo: ["barbinbrad/fiber"]
- timeout-minutes: 5
- steps:
- - name: Dispatch functions to fiber
- run: |
- curl -L \
- -X POST \
- -H "Accept: application/vnd.github+json" \
- -H "Authorization: Bearer ${{ secrets.DISPATCH_TOKEN }}" \
- -H "X-GitHub-Api-Version: 2022-11-28" \
- https://api.github.com/repos/${{ matrix.repo }}/dispatches \
- -d '{"event_type":"functions","client_payload":{"key": "${{ secrets.DISPATCH_KEY_PROD }}"}}'
diff --git a/.github/workflows/migrations.yml b/.github/workflows/supabase.yml
similarity index 76%
rename from .github/workflows/migrations.yml
rename to .github/workflows/supabase.yml
index 3f31b4a1fd..a4008473a4 100644
--- a/.github/workflows/migrations.yml
+++ b/.github/workflows/supabase.yml
@@ -2,7 +2,8 @@ name: Deploy Migrations
on:
push:
branches: [main]
- paths: ["packages/database/supabase/migrations/**"]
+ paths: ["packages/database/supabase/**"]
+ workflow_dispatch:
jobs:
dispatch:
@@ -21,4 +22,4 @@ jobs:
-H "Authorization: Bearer ${{ secrets.DISPATCH_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ matrix.repo }}/dispatches \
- -d '{"event_type":"migrations","client_payload":{"key": "${{ secrets.DISPATCH_KEY_PROD }}"}}'
+ -d '{"event_type":"supabase","client_payload":{"key": "${{ secrets.DISPATCH_KEY_PROD }}"}}'