Skip to content

Commit 42b228f

Browse files
Don't upload release assets if in workflow_dispatch (#280)
1 parent 262d2c7 commit 42b228f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ jobs:
111111
path: |
112112
*.deb
113113
- name: Upload as release assets
114+
# we don't upload on workflow dispatch
115+
if: github.event_name == 'release'
114116
uses: softprops/action-gh-release@v1
115117
with:
116118
files: |
@@ -145,7 +147,6 @@ jobs:
145147
cd binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }} && apt install --yes ./*.deb
146148
147149
publish-to-apt:
148-
if: github.event.release.prerelease == false
149150
env:
150151
DEB_S3_VERSION: "0.11.3"
151152
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)