mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-09-18 20:43:54 +03:00
fix(ci): tighten artifact upload path regex
This commit is contained in:
@@ -188,6 +188,8 @@ jobs:
|
|||||||
$ffmpegExe = Get-ChildItem -Path "ffmpeg_tmp" -Filter "ffmpeg.exe" -Recurse | Select-Object -First 1
|
$ffmpegExe = Get-ChildItem -Path "ffmpeg_tmp" -Filter "ffmpeg.exe" -Recurse | Select-Object -First 1
|
||||||
if (-not $ffmpegExe) { throw "ffmpeg.exe not found in archive" }
|
if (-not $ffmpegExe) { throw "ffmpeg.exe not found in archive" }
|
||||||
Copy-Item $ffmpegExe.FullName "package/bin/ffmpeg.exe"
|
Copy-Item $ffmpegExe.FullName "package/bin/ffmpeg.exe"
|
||||||
|
Remove-Item -Force "ffmpeg.zip"
|
||||||
|
Remove-Item -Recurse -Force "ffmpeg_tmp"
|
||||||
|
|
||||||
- name: Bundle FFmpeg (Linux)
|
- name: Bundle FFmpeg (Linux)
|
||||||
if: runner.os == 'Linux' && matrix.ffmpeg == 'bundled'
|
if: runner.os == 'Linux' && matrix.ffmpeg == 'bundled'
|
||||||
@@ -207,7 +209,11 @@ jobs:
|
|||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
$version = "${{ steps.version.outputs.version }}"
|
$version = "${{ steps.version.outputs.version }}"
|
||||||
$variant = "${{ matrix.ffmpeg }}"
|
$variant = "${{ matrix.ffmpeg }}"
|
||||||
$name = "ytpl-sync-windows-$version-$variant.zip"
|
if ($variant -eq "bundled") {
|
||||||
|
$name = "ytpl-sync-windows-$version-ffmpeg.zip"
|
||||||
|
} else {
|
||||||
|
$name = "ytpl-sync-windows-$version.zip"
|
||||||
|
}
|
||||||
Compress-Archive -Path "package/*" -DestinationPath $name
|
Compress-Archive -Path "package/*" -DestinationPath $name
|
||||||
|
|
||||||
- name: Archive (Linux)
|
- name: Archive (Linux)
|
||||||
@@ -217,7 +223,11 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
version="${{ steps.version.outputs.version }}"
|
version="${{ steps.version.outputs.version }}"
|
||||||
variant="${{ matrix.ffmpeg }}"
|
variant="${{ matrix.ffmpeg }}"
|
||||||
name="ytpl-sync-linux-${version}-${variant}.tar.gz"
|
if [[ "$variant" == "bundled" ]]; then
|
||||||
|
name="ytpl-sync-linux-${version}-ffmpeg.tar.gz"
|
||||||
|
else
|
||||||
|
name="ytpl-sync-linux-${version}.tar.gz"
|
||||||
|
fi
|
||||||
tar -C package -czf "$name" .
|
tar -C package -czf "$name" .
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
@@ -225,8 +235,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: packages-${{ runner.os }}-${{ matrix.ffmpeg }}
|
name: packages-${{ runner.os }}-${{ matrix.ffmpeg }}
|
||||||
path: |
|
path: |
|
||||||
*.zip
|
ytpl-sync-*.zip
|
||||||
*.tar.gz
|
ytpl-sync-*.tar.gz
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Create Release
|
name: Create Release
|
||||||
|
|||||||
Reference in New Issue
Block a user