File tree Expand file tree Collapse file tree 1 file changed +8
-16
lines changed
Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change 1313jobs :
1414 build :
1515 runs-on : ubuntu-latest
16+ permissions :
17+ contents : write
1618 steps :
17-
1819 - uses : actions/checkout@v3
19-
2020 - name : Cache pip
2121 uses : actions/cache@v2
2222 with :
2323 path : ~/.cache/pip
2424 key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
2525 restore-keys : |
2626 ${{ runner.os }}-pip-
27-
2827 - name : Cache PlatformIO
2928 uses : actions/cache@v2
3029 with :
3130 path : ~/.platformio
3231 key : ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
33-
3432 - name : Set up Python
3533 uses : actions/setup-python@v4
36-
3734 - name : Install PlatformIO
3835 run : |
3936 python -m pip install --upgrade pip
4037 pip install --upgrade platformio
4138 pio platform update
4239 # pio run -t clean
43-
4440 - name : Set version var
4541 run : echo "PLATFORMIO_BUILD_FLAGS=-DFW_VERSION='\"${GITHUB_REF#refs/*/}\"' -DREPO_PATH='\"$GITHUB_REPOSITORY\"'" >> $GITHUB_ENV
4642 if : startsWith(github.ref, 'refs/tags/v')
47-
4843 - name : Run PlatformIO
4944 run : pio run -e esp32dev
50-
5145 - name : Rename firmware
5246 run : cp .pio/build/esp32dev/firmware.bin esp32.bin
53-
5447 - name : Release
55- uses : softprops/action-gh- release@v1
48+ uses : ncipollo/ release-action @v1
5649 if : startsWith(github.ref, 'refs/tags/v')
5750 with :
58- files : " *.bin"
59- env :
60- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61-
51+ artifacts : " *.bin"
52+ generateReleaseNotes : true
53+ token : ${{ secrets.GITHUB_TOKEN }}
6254 - name : Archive Build
63- uses : kittaakos /upload-artifact-as-is@v0
55+ uses : actions /upload-artifact@v3
6456 with :
65- path : ./ *.bin
57+ path : " *.bin"
You can’t perform that action at this time.
0 commit comments