Skip to content

Commit 19c90c2

Browse files
committed
Combine the artifacts from all jobs
1 parent 4718960 commit 19c90c2

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/push.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
name: artifacts
3131
path: dist
3232

33-
inspect-artifacts:
34-
name: Check resulting artifacts
33+
combine-artifacts:
34+
name: Combine artifacts
3535
needs: build-libs
3636
runs-on: ubuntu-latest
3737
steps:
@@ -41,5 +41,19 @@ jobs:
4141
name: artifacts
4242
path: dist
4343
- shell: bash
44-
run: ls -l dist
44+
run: |
45+
mkdir -p out
46+
find dist -name 'arduino-esp32-libs-esp*.tar.gz' -exec tar zxvf {} -C out \;
47+
cd out/tools/esp32-arduino-libs && tar zcf ../../../dist/arduino-esp32-libs.tar.gz * && cd ../../..
48+
cp out/package_esp32_index.template.json dist/package_esp32_index.template.json
49+
- name: Upload full arduino-esp32-libs archive
50+
uses: actions/upload-artifact@v3
51+
with:
52+
name: arduino-esp32-libs
53+
path: dist/arduino-esp32-libs.tar.gz
54+
- name: Upload package_esp32_index.template.json
55+
uses: actions/upload-artifact@v3
56+
with:
57+
name: package-esp32-index-json
58+
path: dist/package_esp32_index.template.json
4559

0 commit comments

Comments
 (0)