aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Sawicki <contact@grub4k.xyz>2023-03-04 14:18:24 +0100
committerGitHub <noreply@github.com>2023-03-04 14:18:24 +0100
commit08ff6d59f97b5f5f0128f6bf6fbef56fd836cc52 (patch)
tree74d67095f06ddaa5b2c52a3e9d3edc6baf2a088e
parent4a6272c6d1bff89969b67cd22b26ebe6d7e72279 (diff)
downloadhypervideo-pre-08ff6d59f97b5f5f0128f6bf6fbef56fd836cc52.tar.lz
hypervideo-pre-08ff6d59f97b5f5f0128f6bf6fbef56fd836cc52.tar.xz
hypervideo-pre-08ff6d59f97b5f5f0128f6bf6fbef56fd836cc52.zip
[build] Only archive if `vars.ARCHIVE_REPO` is set
Authored by: Grub4K
-rw-r--r--.github/workflows/publish.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 42e66a29c..8a1bd9a01 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_REPO
env:
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.nightly
run: |
gh release create \
--notes-file ${{ inputs.nightly && 'PRE' || '' }}RELEASE_NOTES \