21 Commits

Author SHA1 Message Date
tkmxqrdxddd
a2f67dc9c9 fix: simplify release workflow to build both packages efficiently 2026-03-17 21:32:15 +01:00
tkmxqrdxddd
45ac6d823c fix: build both architectures in single job to avoid race condition 2026-03-17 21:18:42 +01:00
tkmxqrdxddd
8317e3367a fix: add permissions to release workflow 2026-03-17 21:09:43 +01:00
tkmxqrdxddd
73a2b1d724 fix: upload DEB packages to GitHub Release 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
1166e34804 fix: use github-script to upload to release 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
8b007be08a fix: use action-gh-release to create release and upload files 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
d966cd9e23 fix: create release from tag push and upload deb packages 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
f59756da40 fix: use gh CLI to upload to release 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
135ae0e244 fix: upload .deb packages to GitHub release 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
0a8825e840 fix: remove problematic release upload and use artifacts 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
162d5eb2bf fix: add workflow_dispatch trigger to release workflow 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
a39ec74bb3 fix: remove duplicate upload step in build-deb workflow 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
759d81669c fix: remove release upload from build-deb workflow 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
9d0897eb43 fix: trigger release workflow on release event only 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
53fb0e3d31 fix: simplify release workflow 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
28cb3eaa99 fix: add GH_TOKEN environment variable 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
f24c22f462 fix: create release if not exists before uploading 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
5403db806d fix: handle both push and release events for uploads 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
e131333c80 fix: remove invalid append_only parameter 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
d724e17ec0 fix: use append_only mode for release uploads 2026-03-17 21:08:54 +01:00
tkmxqrdxddd
c869bb0953 fix: update release workflows to use artifacts and proper triggers
- Change release.yml to trigger on tag push instead of release event
- Remove problematic release upload from ci-cd.yml
- Use upload-artifact instead for package artifacts
2026-03-17 21:08:54 +01:00
3 changed files with 27 additions and 34 deletions

View File

@@ -85,16 +85,8 @@ jobs:
run: | run: |
dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_${{ matrix.arch }}.deb dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_${{ matrix.arch }}.deb
- name: Upload DEB package - name: Upload DEB package as artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
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: Upload to Release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v1
with:
files: davinci-video-converter_*.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -153,9 +153,8 @@ jobs:
run: | run: |
dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_${{ matrix.arch }}.deb dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_${{ matrix.arch }}.deb
- name: Upload to Release - name: Upload DEB package as artifact
uses: softprops/action-gh-release@v1 uses: actions/upload-artifact@v4
with: with:
files: davinci-video-converter_*.deb name: davinci-video-converter-${{ matrix.arch }}.deb
env: path: davinci-video-converter_*.deb
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,16 +1,17 @@
name: Release Pipeline name: Release Pipeline
on: on:
release: push:
types: [published, created] tags:
- 'v*'
permissions:
contents: write
jobs: jobs:
release: release:
name: Release Build name: Release Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64, arm64]
steps: steps:
- name: Checkout code - name: Checkout code
@@ -21,17 +22,9 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install -y build-essential ffmpeg devscripts debhelper sudo apt-get install -y build-essential ffmpeg devscripts debhelper
- name: Build - name: Build binary
run: make run: make
- name: Create test input file
run: |
mkdir -p tests
ffmpeg -f lavfi -i testsrc=duration=1:size=128x72:rate=1 -c:v libx264 -t 1 tests/input.mp4 -y 2>/dev/null || touch tests/input.mp4
- name: Run Tests
run: make test
- name: Create DEB directory structure - name: Create DEB directory structure
run: | run: |
mkdir -p debian/DEBIAN mkdir -p debian/DEBIAN
@@ -46,7 +39,7 @@ jobs:
Version: $VERSION Version: $VERSION
Section: video Section: video
Priority: optional Priority: optional
Architecture: ${{ matrix.arch }} Architecture: amd64
Maintainer: Developer <developer@example.com> Maintainer: Developer <developer@example.com>
Description: DaVinci Video Converter Description: DaVinci Video Converter
A command-line video conversion tool optimized for DaVinci Resolve workflows. A command-line video conversion tool optimized for DaVinci Resolve workflows.
@@ -69,13 +62,22 @@ jobs:
EOF EOF
chmod 755 debian/DEBIAN/postinst chmod 755 debian/DEBIAN/postinst
- name: Build DEB package - name: Build AMD64 DEB package
run: | run: |
dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_${{ matrix.arch }}.deb dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_amd64.deb
- name: Upload to Release - name: Build ARM64 DEB package
run: |
sed -i 's/Architecture: amd64/Architecture: arm64/' debian/DEBIAN/control
dpkg-deb --build debian davinci-video-converter_${GITHUB_REF#refs/tags/}_arm64.deb
- name: Upload DEB packages as artifacts
uses: actions/upload-artifact@v4
with:
name: davinci-video-converter-debs
path: davinci-video-converter_*.deb
- name: Upload DEB packages to GitHub 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}