Skip to content

Commit b7df073

Browse files
chore: try to simplify action
1 parent 20edc72 commit b7df073

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,10 @@ jobs:
2020
sudo apt-get update
2121
sudo apt-get install -y cmake build-essential gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
2222
23-
- name: Configure CMake
24-
run: |
25-
mkdir -p build
26-
cd build
27-
cmake .. -DCMAKE_BUILD_TYPE=Release -DPICO_SDK_FETCH_FROM_GIT=ON
28-
2923
- name: Build Firmware
3024
run: make build
3125

32-
- name: Check if release exists
33-
id: check_release
34-
run: |
35-
if gh release view ${{ github.ref_name }} --json id > /dev/null 2>&1; then
36-
echo "exists=true" >> $GITHUB_OUTPUT
37-
else
38-
echo "exists=false" >> $GITHUB_OUTPUT
39-
fi
40-
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
4326
- name: Create Release
44-
if: steps.check_release.outputs.exists == 'false'
4527
uses: softprops/action-gh-release@v2
4628
env:
4729
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -51,13 +33,6 @@ jobs:
5133
body: 'Release assets for ${{ github.ref_name }}.'
5234
draft: true
5335
prerelease: ${{ contains(github.ref_name, '-') }}
54-
55-
- name: Upload Firmware Assets
56-
uses: softprops/action-gh-release@v2
57-
env:
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59-
with:
60-
tag_name: ${{ github.ref_name }}
6136
files: |
6237
build/dshot/dshot.uf2
6338
build/pwm/pwm.uf2

0 commit comments

Comments
 (0)