Skip to content

Commit 5b42c43

Browse files
committed
Remove stale GitHub Actions
1 parent 792f996 commit 5b42c43

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,53 +13,45 @@ on:
1313
jobs:
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"

0 commit comments

Comments
 (0)