Skip to content

Commit b9c6809

Browse files
authored
CI Build: Adjust workflow to make it reusable by distro build (#8)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
1 parent 0f6ecc3 commit b9c6809

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/build.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: CI Build
22

33
on:
4+
workflow_call:
45
workflow_dispatch:
56
push:
67
branches: ["main"]
@@ -27,6 +28,8 @@ jobs:
2728
steps:
2829
- name: Checkout repository
2930
uses: actions/checkout@v4
31+
with:
32+
repository: "llamara-ai/llamara-frontend"
3033

3134
- name: Set up NodeJS
3235
uses: actions/setup-node@v4
@@ -61,7 +64,7 @@ jobs:
6164
- name: Upload build artifact
6265
uses: actions/upload-artifact@v4
6366
with:
64-
name: dist
67+
name: vite-dist
6568
path: |
6669
dist
6770
@@ -71,3 +74,11 @@ jobs:
7174
name: vitest-coverage
7275
path: |
7376
coverage
77+
78+
- name: Trigger distro build
79+
if: github.repository == 'llamara-ai/llamara-frontend' && github.event_name != 'pull_request' && github.ref_name == 'main'
80+
uses: peter-evans/repository-dispatch@v3
81+
with:
82+
token: ${{ secrets.DISTRO_DISPATCH_BUILD_TOKEN }}
83+
repository: llamara-ai/llamara-distro
84+
event-type: build

0 commit comments

Comments
 (0)