Skip to content

Commit e77148a

Browse files
committed
gha challenge: rename release file on push; use wildcard for upload filename
1 parent bf290b5 commit e77148a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/firmware.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,17 @@ jobs:
2020
run: |
2121
make docker
2222
make firmware
23+
sudo mv micropython/build/pipico-micropython-scpi.uf2 "micropython/build/pipico-micropython-scpi-${REF##*/}.uf2"
2324
- name: Upload artifact files (at a push)
2425
uses: actions/upload-artifact@v3
2526
with:
2627
path: |
2728
micropython/build
28-
- name: Release firmware (at a tag)
29-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
30-
run: |
31-
echo "micropython/build/pipico-micropython-scpi-${REF##*/}.uf2"
32-
sudo mv micropython/build/pipico-micropython-scpi.uf2 "micropython/build/pipico-micropython-scpi-${REF##*/}.uf2"
33-
ls micropython/build/
3429
- name: Release firmware (at a tag)
3530
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3631
uses: softprops/action-gh-release@v2
3732
with:
38-
files: micropython/build/pipico-micropython-scpi-${REF##*/}.uf2
33+
files: micropython/build/pipico-micropython-scpi-*.uf2
3934

4035
make-document:
4136
name: Compile document

0 commit comments

Comments
 (0)