fix: simplify release workflow

This commit is contained in:
tkmxqrdxddd
2026-03-17 20:39:09 +01:00
parent 28cb3eaa99
commit 53fb0e3d31

View File

@@ -4,8 +4,6 @@ on:
push:
tags:
- 'v*'
release:
types: [published]
jobs:
release:
@@ -82,18 +80,9 @@ jobs:
name: davinci-video-converter-${{ matrix.arch }}.deb
path: davinci-video-converter_*.deb
- name: Create Release if not exists
if: github.event_name == 'push'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Check if release exists, create if not
if ! gh release view ${{ github.ref_name }} &>/dev/null; then
gh release create ${{ github.ref_name }} --notes "Release ${{ github.ref_name }}" --title "Version ${{ github.ref_name }}"
fi
- name: Upload DEB package to Release
- name: Upload to GitHub Release
uses: softprops/action-gh-release@v1
with:
files: davinci-video-converter_*.deb
tag_name: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}