-
-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (42 loc) · 1.32 KB
/
bundle-assets.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
name: Bundle build assets
on:
workflow_call:
jobs:
bundle-assets:
name: Create asset bundle
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create Output Directory
run: mkdir -p output
- name: Create Fimrware Directory
run: mkdir -p output/firmware/release/
- name: Download github-pages artifact
uses: actions/download-artifact@v4
with:
name: vitepress-docs
path: output
- name: Copy interactive BOM
run: cp pcb/bom/ibom.html output/
- name: Download Doorman Stock (ESP32-S3) artifact
uses: actions/download-artifact@v4
with:
name: firmware-doorman-stock
path: output/firmware/release
- name: Download Doorman Nuki Bridge (ESP32-S3) artifact
uses: actions/download-artifact@v4
with:
name: firmware-doorman-nuki-bridge
path: output/firmware/release
- name: Upload Pages artifact
if: github.ref == 'refs/heads/master'
uses: actions/upload-pages-artifact@v3
with:
path: output
- name: Upload Assets Bundle
if: github.ref != 'refs/heads/master'
uses: actions/upload-artifact@v4
with:
name: asset-bundle
path: output