mirror of
https://github.com/tkmxqrdxddd/davinci-video-converter
synced 2026-03-29 15:25:33 +02:00
fix: simplify release workflow
This commit is contained in:
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@@ -4,8 +4,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
release:
|
|
||||||
types: [published]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -82,18 +80,9 @@ 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
|
- name: Upload to GitHub Release
|
||||||
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
|
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: davinci-video-converter_*.deb
|
files: davinci-video-converter_*.deb
|
||||||
tag_name: ${{ github.ref_name }}
|
tag_name: ${{ github.ref_name }}
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user