Skip to content

Commit 20d3738

Browse files
committed
ci: run the release workflow on every push, but only generate a release when we're pushing a tag
1 parent c41d96e commit 20d3738

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: UF2 Generate and Release
22
on:
33
workflow_dispatch:
44
push:
5-
tags:
6-
- '*'
75
jobs:
86
create-release:
97
env:
@@ -46,6 +44,7 @@ jobs:
4644

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

0 commit comments

Comments
 (0)