Skip to content

Commit

Permalink
ci: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davidramiro committed Mar 18, 2024
1 parent 13a1ad4 commit 606503a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,28 @@ jobs:
run: pip install --upgrade platformio

- name: Build PlatformIO Project
run: pio run
run: pio run

- uses: actions/upload-artifact@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: firmware-release
path: .pio/build/32u416m/firmware.hex

release:
name: Create Release
runs-on: ubuntu-latest
needs: [build]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v2
with:
name: firmware-release
- name: Create draft release
uses: softprops/action-gh-release@v1
with:
draft: True
files: |
*.hex
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ board = micro
framework = arduino
monitor_speed = 115200
lib_deps =
arduino-libraries/Mouse@^1.0.1
arduino-libraries/Mouse
chrono
adafruit/Adafruit GFX Library@^1.11.9
adafruit/Adafruit SSD1306@^2.5.9
adafruit/Adafruit GFX Library
adafruit/Adafruit SSD1306

0 comments on commit 606503a

Please sign in to comment.