A feature-rich command-line audio/video downloader
[build] Only archive if `vars.ARCHIVE_REPO` is set
Simon Sawicki08ff6d59f97b
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex 42e66a29cb..8a1bd9a010 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -55,12 +55,12 @@ jobs:run: |gh release create \--notes-file ARCHIVE_NOTES \- --title "Build ${{ inputs.version }}" \+ --title "yt-dlp nightly ${{ inputs.version }}" \${{ inputs.version }} \artifact/*- name: Prune old nightly release- if: inputs.nightly+ if: inputs.nightly && !vars.ARCHIVE_REPOenv:GH_TOKEN: ${{ github.token }}run: |@@ -71,6 +71,7 @@ jobs:- name: Publish release${{ inputs.nightly && ' (nightly)' || '' }}env:GH_TOKEN: ${{ github.token }}+ if: (inputs.nightly && !vars.ARCHIVE_REPO) || !inputs.nightlyrun: |gh release create \--notes-file ${{ inputs.nightly && 'PRE' || '' }}RELEASE_NOTES \