Skip to content

Commit

Permalink
Merge pull request #18 from sensebox/ci/release-action
Browse files Browse the repository at this point in the history
ci: update release action
  • Loading branch information
felixerdy authored Apr 29, 2024
2 parents 6334fca + 7205749 commit 894eb0d
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/compile-sketches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

jobs:
compile-sketch:
compile-sketches:
name: ${{ matrix.board.fqbn }}
runs-on: ubuntu-latest

Expand Down Expand Up @@ -79,9 +79,19 @@ jobs:
name: ${{ matrix.board.artifact-name-suffix }}
path: ${{ github.workspace }}

- name: Release
uses: softprops/action-gh-release@v2
release:
needs: compile-sketches
runs-on: ubuntu-latest
steps:
- name: Download Firmware Files
uses: actions/download-artifact@v4
with:
path: release
- name: Release Firmware
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ github.workspace }}/${{ matrix.board.artifact-name-suffix }}.zip
artifacts: release/**/*.bin
generateReleaseNotes: true
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 894eb0d

Please sign in to comment.