27 Commits
v1.0.0 ... main

Author SHA1 Message Date
tkmxqrdxddd
665ba3a5fd fix: add permissions to security workflow 2026-03-17 22:06:56 +01:00
tkmxqrdxddd
7b9957dd2c fix: add permissions to ci workflow 2026-03-17 22:06:36 +01:00
tkmxqrdxddd
0d2740db94 fix: add permissions to build-deb workflow 2026-03-17 22:06:23 +01:00
tkmxqrdxddd
45e68ca7cb fix: add permissions to CI/CD workflow 2026-03-17 22:06:10 +01:00
tkmxqrdxddd
9fc28abc91 fix: remove conflicting CodeQL advanced configuration 2026-03-17 22:05:55 +01:00
tkmxqrdxddd
f1021e4391 chore: update gitignore 2026-03-17 22:03:18 +01:00
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
6 changed files with 40 additions and 61 deletions

View File

@@ -7,6 +7,9 @@ on:
release:
types: [published]
permissions:
contents: read
jobs:
build-deb:
runs-on: ubuntu-latest
@@ -85,16 +88,8 @@ jobs:
run: |
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
with:
name: davinci-video-converter-${{ matrix.arch }}.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

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

View File

@@ -6,6 +6,9 @@ on:
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest

View File

@@ -1,16 +1,17 @@
name: Release Pipeline
on:
release:
types: [published, created]
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
name: Release Build
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64, arm64]
steps:
- name: Checkout code
@@ -21,17 +22,9 @@ jobs:
sudo apt-get update
sudo apt-get install -y build-essential ffmpeg devscripts debhelper
- name: Build
- name: Build binary
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
run: |
mkdir -p debian/DEBIAN
@@ -46,7 +39,7 @@ jobs:
Version: $VERSION
Section: video
Priority: optional
Architecture: ${{ matrix.arch }}
Architecture: amd64
Maintainer: Developer <developer@example.com>
Description: DaVinci Video Converter
A command-line video conversion tool optimized for DaVinci Resolve workflows.
@@ -69,13 +62,22 @@ jobs:
EOF
chmod 755 debian/DEBIAN/postinst
- name: Build DEB package
- name: Build AMD64 DEB package
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
with:
files: davinci-video-converter_*.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -9,33 +9,10 @@ on:
# Run security scans weekly on Sunday at 2 AM UTC
- cron: '0 2 * * 0'
jobs:
codeql:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: cpp
queries: security-extended,security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:cpp"
jobs:
dependency-review:
name: Dependency Review
runs-on: ubuntu-latest

2
.gitignore vendored
View File

@@ -44,4 +44,4 @@ tests/*.mov
tests/*.mkv
tests/test_parser
tests/test_validator
tests/test_converter
tests/test_converter# Contributors