1111 PlatformIO :
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v3
14+ - uses : actions/checkout@v4.2.2
1515 - name : Cache pip
1616 uses : actions/cache@v3
1717 with :
2020 restore-keys : |
2121 ${{ runner.os }}-pip-
2222 - name : Cache PlatformIO
23- uses : actions/cache@v3
23+ uses : actions/cache@v4.2.3
2424 with :
2525 path : ~/.platformio
2626 key : ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
@@ -34,18 +34,17 @@ jobs:
3434 pip install --upgrade platformio
3535 - name : Run PlatformIO
3636 run : pio run
37- - uses : actions/upload-artifact@v3
37+ - uses : actions/upload-artifact@v4.6.2
3838 name : Upload artifacts (commit)
3939 if : (startsWith(github.event.ref, 'refs/tags') != true)
4040 with :
4141 path : |
4242 .pio/build/*.bin
43-
44- - uses : actions/upload-artifact@v3
43+ - uses : actions/upload-artifact@v4.6.2
4544 name : Upload artifacts (release)
4645 if : startsWith(github.ref, 'refs/tags/')
4746 with :
48- name : firmware- release
47+ name : release-artifact
4948 path : |
5049 .pio/build/*.bin
5150
@@ -70,18 +69,19 @@ jobs:
7069 if : contains(env.VERSION, 'alpha') || contains(env.VERSION, 'beta')
7170 run : echo "preRelease=true" >> $GITHUB_ENV
7271
73- - uses : actions/download-artifact@v3
72+ - uses : actions/download-artifact@v4.3.0
7473 with :
75- name : firmware-release
74+ path : artifacts
75+ pattern : release-artifact
76+ merge-multiple : true
7677
7778 # create draft release and upload artifacts
7879 - name : Create draft release
79- uses : softprops/action-gh-release@v1
80+ uses : softprops/action-gh-release@v2.2.2
8081 with :
8182 name : HyperSerialEsp8266 ${{ env.VERSION }}
8283 tag_name : ${{ env.TAG }}
83- files : |
84- *.bin
84+ files : " artifacts/*.bin"
8585 draft : true
8686 prerelease : ${{ env.preRelease }}
8787 env :
0 commit comments