fix: create release from tag push and upload deb packages

This commit is contained in:
tkmxqrdxddd
2026-03-17 21:02:17 +01:00
parent f59756da40
commit d966cd9e23

View File

@@ -1,8 +1,9 @@
name: Release Pipeline name: Release Pipeline
on: on:
release: push:
types: [published, created] tags:
- 'v*'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@@ -80,6 +81,15 @@ jobs:
name: davinci-video-converter-${{ matrix.arch }}.deb name: davinci-video-converter-${{ matrix.arch }}.deb
path: davinci-video-converter_*.deb path: davinci-video-converter_*.deb
- name: Create Release if not exists
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 }}" --generate-notes
fi
- name: Upload DEB package to Release - name: Upload DEB package to Release
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}