Skip to content

Commit fc5b39f

Browse files
authored
Merge pull request adafruit#1890 from jepler/arduino-releases
use actions-gh-release
2 parents c586a09 + 18ecd13 commit fc5b39f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/githubci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,26 @@ 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+
(
55+
echo "Built from Adafruit Learning System Guides `git describe --tags` for ${{ matrix.arduino-platform }}"
56+
echo "Source code: https://github.com/adafruit/"
57+
echo "Adafruit Learning System: https://learn.adafruit.com/"
58+
) > build/README.txt
59+
cd build && zip -9 -o ${{ matrix.arduino-platform }}.zip *.hex *.bin *.uf2 *.txt
60+
fi
61+
62+
- name: Create release
63+
if: startsWith(github.ref, 'refs/tags/')
64+
uses: softprops/action-gh-release@v1
65+
with:
66+
files: build/${{ matrix.arduino-platform }}.zip
67+
fail_on_unmatched_files: false
68+
body: "Select the zip file corresponding to your board from the list below."
69+
5070
pylint:
5171
runs-on: ubuntu-latest
5272
steps:

0 commit comments

Comments
 (0)