mirror of
https://github.com/tkmxqrdxddd/davinci-video-converter
synced 2026-03-29 23:35:32 +02:00
fix: handle both push and release events for uploads
This commit is contained in:
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@@ -4,6 +4,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -81,6 +83,14 @@ jobs:
|
|||||||
path: davinci-video-converter_*.deb
|
path: davinci-video-converter_*.deb
|
||||||
|
|
||||||
- name: Upload DEB package to Release
|
- name: Upload DEB package to Release
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: davinci-video-converter_*.deb
|
||||||
|
tag_name: ${{ github.ref_name }}
|
||||||
|
|
||||||
|
- name: Upload DEB package to existing Release
|
||||||
|
if: github.event_name == 'release'
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: davinci-video-converter_*.deb
|
files: davinci-video-converter_*.deb
|
||||||
|
|||||||
Reference in New Issue
Block a user