Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoGr authored Jul 18, 2024
1 parent 2b96f03 commit ec06862
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,28 @@ jobs:
run: pio lib install
- name: Run PlatformIO
run: platformio run
- name: Upload firmware.bin
uses: actions/upload-artifact@v3
with:
name: firmware
path: |
.pio/build/**/firmware.bin
create-pre-release:
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download firmware artifact
uses: actions/download-artifact@v3
with:
name: firmware
path: ./release
- name: Create Pre-release
uses: softprops/action-gh-release@v2
with:
files: ./release/firmware.bin
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ec06862

Please sign in to comment.