Skip to content

Commit d9eaf1a

Browse files
committed
chore: updated ci config
1 parent facdd18 commit d9eaf1a

5 files changed

Lines changed: 18 additions & 23 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -56,28 +56,20 @@ jobs:
5656

5757
- name: Build All Packages
5858
run: pnpm build
59-
deploy-trigger:
59+
deploy-frontend:
6060
needs: [test, changes]
61-
if: github.ref == 'refs/heads/main'
62-
runs-on: ubuntu-latest
63-
steps:
64-
- name: Trigger Frontend
65-
if: needs.changes.outputs.web == 'true' || needs.changes.outputs.sdk == 'true'
66-
uses: peter-evans/repository-dispatch@v2
67-
with:
68-
token: ${{ secrets.GITHUB_TOKEN }}
69-
event-type: deploy-frontend
61+
if: github.ref == 'refs/heads/main' && (needs.changes.outputs.web == 'true' || needs.changes.outputs.sdk == 'true')
62+
uses: ./.github/workflows/deploy-frontend.yml
63+
secrets: inherit
7064

71-
- name: Trigger API
72-
if: needs.changes.outputs.api == 'true'
73-
uses: peter-evans/repository-dispatch@v2
74-
with:
75-
token: ${{ secrets.GITHUB_TOKEN }}
76-
event-type: deploy-api
65+
deploy-api:
66+
needs: [test, changes]
67+
if: github.ref == 'refs/heads/main' && needs.changes.outputs.api == 'true'
68+
uses: ./.github/workflows/deploy-api.yml
69+
secrets: inherit
7770

78-
- name: Trigger Worker
79-
if: needs.changes.outputs.api == 'true'
80-
uses: peter-evans/repository-dispatch@v2
81-
with:
82-
token: ${{ secrets.GITHUB_TOKEN }}
83-
event-type: deploy-worker
71+
deploy-worker:
72+
needs: [test, changes]
73+
if: github.ref == 'refs/heads/main' && needs.changes.outputs.api == 'true'
74+
uses: ./.github/workflows/deploy-worker.yml
75+
secrets: inherit

.github/workflows/deploy-api.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Deploy API
22

33
on:
4+
workflow_call:
45
repository_dispatch:
56
types: [deploy-api]
67

.github/workflows/deploy-frontend.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Deploy Frontend
22

33
on:
4+
workflow_call:
45
repository_dispatch:
56
types: [deploy-frontend]
67

.github/workflows/deploy-worker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Deploy Worker
22

33
on:
4+
workflow_call:
45
repository_dispatch:
56
types: [deploy-worker]
67

apps/web/app/(main)/project-invite/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PageClient from "./page-client";
33

44
export const metadata = {
55
title: "Project Invite",
6-
description: "Project Invite",
6+
description: "project invite",
77
};
88

99
function Page() {

0 commit comments

Comments
 (0)