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

Add tag extraction step for Linux package and update upload process to use extracted tag

This commit is contained in:
2025-10-13 19:41:58 +03:00
parent f0237288ab
commit 8f94d9b66e
+13 -6
View File
@@ -97,6 +97,12 @@ jobs:
autoconf automake libtool gettext autopoint \ autoconf automake libtool gettext autopoint \
libssl-dev libxml2-dev zlib1g-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev libsqlite3-dev
- name: Extract tag name
run: |
REF="${GITEA_REF:-$GITHUB_REF}"
TAG="${REF#refs/tags/}"
echo "TAG=$TAG" >> $GITHUB_ENV
- name: Prepare Linux package - name: Prepare Linux package
run: | run: |
set -e set -e
@@ -135,14 +141,15 @@ jobs:
# Remove temp files and downloaded archives before zipping # Remove temp files and downloaded archives before zipping
rm -rf "$WORKSPACE_ROOT/dist/linux/ffmpeg_temp" "$WORKSPACE_ROOT/dist/linux/aria2c_build" "$WORKSPACE_ROOT/dist/linux/ffmpeg.tar.xz" "$WORKSPACE_ROOT/dist/linux/aria2c_build/aria2-1.37.0.tar.gz" rm -rf "$WORKSPACE_ROOT/dist/linux/ffmpeg_temp" "$WORKSPACE_ROOT/dist/linux/aria2c_build" "$WORKSPACE_ROOT/dist/linux/ffmpeg.tar.xz" "$WORKSPACE_ROOT/dist/linux/aria2c_build/aria2-1.37.0.tar.gz"
# Zip everything at top level # Zip everything
cd "$WORKSPACE_ROOT/dist/linux" cd "$WORKSPACE_ROOT/dist/linux"
zip -r "$WORKSPACE_ROOT/yt-playlist-linux-${{ gitea.ref_name }}.zip" * ZIP_NAME="yt-playlist-linux-${TAG}.zip"
cd "$WORKSPACE_ROOT" zip -r "$WORKSPACE_ROOT/$ZIP_NAME" *
echo "ZIP_PATH=$WORKSPACE_ROOT/$ZIP_NAME" >> $GITHUB_ENV
- 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: $WORKSPACE_ROOT/yt-playlist-linux-${{ gitea.ref_name }}.zip files: ${{ env.ZIP_PATH }}
tag_name: ${{ gitea.ref_name }} tag_name: ${{ env.TAG }}
name: ${{ gitea.ref_name }} name: ${{ env.TAG }}