Skip to content

Commit

Permalink
ci: run the release workflow on every push, but only generate a relea…
Browse files Browse the repository at this point in the history
…se when we're pushing a tag
  • Loading branch information
urish committed Nov 19, 2024
1 parent b1c185c commit 2c3f4cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: UF2 Generate and Release
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
create-release:
env:
Expand Down Expand Up @@ -46,6 +44,7 @@ jobs:

- name: Upload Release
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
artifacts: "/tmp/tt-demo-rp2040-${{ github.ref_name }}.uf2"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 2c3f4cb

Please sign in to comment.