Skip to content

A feature-rich command-line audio/video downloader

[build] Support release tags that shadow branch names (#17409)

InvalidUsernameExceptiond2dcbfc57471
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a2b5887f33..505141e042 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -316,7 +316,7 @@ jobs:
if: env.TARGET_REPO == github.repository
run: |
git tag "${TARGET_TAG}" "${HEAD_SHA}"
- git push origin "${TARGET_TAG}"
+ git push origin "refs/tags/${TARGET_TAG}"
sleep 5 # Enough time to cover git-push vs gh-release-create race condition
- name: Publish release