diff --git a/.github/scripts/setup_scrcpy.sh b/.github/scripts/setup_scrcpy.sh index 2893de71..e3831a52 100644 --- a/.github/scripts/setup_scrcpy.sh +++ b/.github/scripts/setup_scrcpy.sh @@ -11,6 +11,8 @@ git clone https://github.com/Genymobile/scrcpy cd scrcpy latest_tag=$(git describe --tags --abbrev=0) +echo "LATEST_TAG=$latest_tag" >> $GITHUB_ENV # will be used to upload artifact with tag + wget https://github.com/Genymobile/scrcpy/releases/download/$latest_tag/scrcpy-server-$latest_tag \ -O scrcpy-server diff --git a/.github/workflows/build-appimage.yml b/.github/workflows/build-appimage.yml index 98d3fb57..cc0a5cb8 100644 --- a/.github/workflows/build-appimage.yml +++ b/.github/workflows/build-appimage.yml @@ -43,6 +43,6 @@ jobs: - name: Upload output file uses: actions/upload-artifact@v3 with: - name: scrcpy-x86_64.AppImage + name: scrcpy-x86_64-${{ env.LATEST_TAG }}.AppImage path: ./scrcpy*.AppImage - \ No newline at end of file +