Skip to content

Commit 5d88fb8

Browse files
committed
use actions-gh-release
.. to create a release from a tag, and upload the desired artifacts to it
1 parent c586a09 commit 5d88fb8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/githubci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,20 @@ jobs:
4747
build/*.bin
4848
build/*.uf2
4949
50+
- name: Zip release files
51+
if: startsWith(github.ref, 'refs/tags/')
52+
run: |
53+
if [ -d build ]; then
54+
cd build && zip -9 -o ${{ matrix.arduino-platform }}.zip *.hex *.bin *.uf2
55+
fi
56+
57+
- name: Create release
58+
if: startsWith(github.ref, 'refs/tags/')
59+
uses: softprops/action-gh-release@v1
60+
with:
61+
files: build/${{ matrix.arduino-platform }}.zip
62+
fail_on_unmatched_files: false
63+
5064
pylint:
5165
runs-on: ubuntu-latest
5266
steps:

0 commit comments

Comments
 (0)