1
0
mirror of https://github.com/darkzoul5/YoutubePlaylistSync.git synced 2026-07-03 20:43:59 +03:00

Refactor Windows and Linux package workflows to remove temporary files before zipping and ensure correct tag name usage in uploads

This commit is contained in:
2025-10-13 10:14:54 +03:00
parent 843714e96d
commit fd4412eed1
+8 -6
View File
@@ -85,19 +85,20 @@ jobs:
unzip dist/windows/aria2c.zip -d dist/windows/ unzip dist/windows/aria2c.zip -d dist/windows/
mv dist/windows/aria2-1.37.0-win-64bit-build1/aria2c.exe dist/windows/bin/aria2c.exe mv dist/windows/aria2-1.37.0-win-64bit-build1/aria2c.exe dist/windows/bin/aria2c.exe
# Remove temp files before zipping
rm -rf dist/windows/ffmpeg_temp dist/windows/aria2-1.37.0-win-64bit-build1
# Zip everything # Zip everything
cd dist/windows cd dist/windows
zip -r ../../yt-playlist-windows-${{ needs.determine-next-tag.outputs.next_tag }}.zip * zip -r ../../yt-playlist-windows-${{ needs.determine-next-tag.outputs.next_tag }}.zip *
cd ../.. cd ../..
- name: Clean up Windows temp files
run: rm -rf dist/windows/ffmpeg_temp dist/windows/aria2-1.37.0-win-64bit-build1
- name: Upload Windows release - name: Upload Windows release
uses: https://gitea.com/actions/gitea-release-action@v1 uses: https://gitea.com/actions/gitea-release-action@v1
with: with:
files: yt-playlist-windows-${{ needs.determine-next-tag.outputs.next_tag }}.zip files: yt-playlist-windows-${{ needs.determine-next-tag.outputs.next_tag }}.zip
tag_name: ${{ needs.determine-next-tag.outputs.next_tag }} tag_name: ${{ needs.determine-next-tag.outputs.next_tag }}
name: ${{ needs.determine-next-tag.outputs.next_tag }}
linux-package: linux-package:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -153,16 +154,17 @@ jobs:
cd ../../ cd ../../
chmod +x dist/linux/bin/aria2c chmod +x dist/linux/bin/aria2c
# Remove temp files before zipping
rm -rf dist/linux/ffmpeg_temp dist/linux/aria2c_build
# Zip everything at top level # Zip everything at top level
cd dist/linux cd dist/linux
zip -r ../../yt-playlist-linux-${{ needs.determine-next-tag.outputs.next_tag }}.zip * zip -r ../../yt-playlist-linux-${{ needs.determine-next-tag.outputs.next_tag }}.zip *
cd ../.. cd ../..
- name: Clean up Linux temp files
run: rm -rf dist/linux/ffmpeg_temp dist/linux/aria2c_build
- name: Upload Linux release - name: Upload Linux release
uses: https://gitea.com/actions/gitea-release-action@v1 uses: https://gitea.com/actions/gitea-release-action@v1
with: with:
files: yt-playlist-linux-${{ needs.determine-next-tag.outputs.next_tag }}.zip files: yt-playlist-linux-${{ needs.determine-next-tag.outputs.next_tag }}.zip
tag_name: ${{ needs.determine-next-tag.outputs.next_tag }} tag_name: ${{ needs.determine-next-tag.outputs.next_tag }}
name: ${{ needs.determine-next-tag.outputs.next_tag }}