Skip to content

Commit

Permalink
[build] Only archive if vars.ARCHIVE_REPO is set
Browse files Browse the repository at this point in the history
Authored by: Grub4K
  • Loading branch information
Grub4K committed Mar 4, 2023
1 parent 4a6272c commit 08ff6d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Expand Up @@ -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_REPO
env:
GH_TOKEN: ${{ github.token }}
run: |
Expand All @@ -71,6 +71,7 @@ jobs:
- name: Publish release${{ inputs.nightly && ' (nightly)' || '' }}
env:
GH_TOKEN: ${{ github.token }}
if: (inputs.nightly && !vars.ARCHIVE_REPO) || !inputs.nightly
run: |
gh release create \
--notes-file ${{ inputs.nightly && 'PRE' || '' }}RELEASE_NOTES \
Expand Down

0 comments on commit 08ff6d5

Please sign in to comment.