-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (44 loc) · 1.33 KB
/
01-build-showcases.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
name: Build Showcases
on:
workflow_call:
inputs:
showcase:
required: true
type: string
jobs:
build-showcases:
name: Build Showcase ${{ inputs.showcase }}
runs-on: ubuntu-latest
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
- name: 🔄 Init Cache
uses: ./.github/actions/npm-cache
- name: ⏬ Download foundations build
uses: actions/download-artifact@v4
with:
name: db-ui-foundations-build
path: packages/foundations/build
- name: ⏬ Download output
uses: actions/download-artifact@v4
with:
name: db-ui-output
path: output
- name: ⏬ Download components build
uses: actions/download-artifact@v4
with:
name: db-ui-components-build
path: packages/components/build
- name: 🔨 Build ${{ inputs.showcase }}
run: npm run build --workspace=${{ inputs.showcase }}
- name: ⏫ Upload ${{ inputs.showcase }}
uses: actions/upload-artifact@v4
with:
name: db-ui-${{ inputs.showcase }}
path: build-showcases/${{ inputs.showcase }}
- name: 💀 Killing me softly
uses: ./.github/actions/cancel-workflow
if: failure()
with:
token: ${{ secrets.GITHUB_TOKEN }}