Skip to content

Commit b1305cd

Browse files
committed
use actions-gh-release
1 parent b56c03d commit b1305cd

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/githubci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
arduino-platform: ["cpb"]
10+
arduino-platform: ["cpc", "ledglasses_nrf52840"]
1111
runs-on: ubuntu-18.04
1212

1313
steps:
@@ -46,3 +46,20 @@ jobs:
4646
build/*.hex
4747
build/*.bin
4848
build/*.uf2
49+
50+
- name: where am I
51+
run: find -name \*.uf2 -or -name \*.bin
52+
53+
- name: Zip release files
54+
if: startsWith(github.ref, 'refs/tags/')
55+
run: |
56+
if [ -d build ]; then
57+
cd build && zip -9 -o ${{ matrix.arduino-platform }}.zip *.hex *.bin *.uf2
58+
fi
59+
60+
- name: Create release
61+
if: startsWith(github.ref, 'refs/tags/')
62+
uses: softprops/action-gh-release@v1
63+
with:
64+
files: build/${{ matrix.arduino-platform }}.zip
65+
fail_on_unmatched_files: false

0 commit comments

Comments
 (0)