fix(release): correct gitea and github repository paths in update and release workflows
This commit is contained in:
1 parent
fae001cc1d
commit
70367cc058
5 files changed
+54
-54
No files matched your search
+3
-3
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
REPO="${SEAL_USE_GITHUB_REPO:-${SEAL_HOME_GITHUB_REPO:-yunyingk/seal-use}}"
|
||||
REPO="${SEAL_USE_GITHUB_REPO:-${SEAL_HOME_GITHUB_REPO:-yunyingk/seal-home}}"
|
||||
REQ_VERSION="${SEAL_USE_VERSION:-${SEAL_HOME_VERSION:-latest}}"
|
||||
if [ "$REQ_VERSION" != "latest" ] && [[ "$REQ_VERSION" != v* ]]; then
|
||||
REQ_VERSION="v${REQ_VERSION}"
|
||||
@@ -155,12 +155,12 @@ DOWNLOAD_SUCCESS=false
|
||||
|
||||
# Candidate mirrors
|
||||
if [ "$REQ_VERSION" = "latest" ]; then
|
||||
GITEA_URL="https://git.ying-qing.cn/gitea/seal-use/releases/download/latest/${ASSET_NAME}"
|
||||
GITEA_URL="https://git.ying-qing.cn/gitea/seal-home/releases/download/latest/${ASSET_NAME}"
|
||||
GITHUB_URL="https://github.com/${REPO}/releases/latest/download/${ASSET_NAME}"
|
||||
GHPROXY_URL="https://ghfast.top/https://github.com/${REPO}/releases/latest/download/${ASSET_NAME}"
|
||||
CHECKSUM_URL="https://github.com/${REPO}/releases/latest/download/checksums.txt"
|
||||
else
|
||||
GITEA_URL="https://git.ying-qing.cn/gitea/seal-use/releases/download/${REQ_VERSION}/${ASSET_NAME}"
|
||||
GITEA_URL="https://git.ying-qing.cn/gitea/seal-home/releases/download/${REQ_VERSION}/${ASSET_NAME}"
|
||||
GITHUB_URL="https://github.com/${REPO}/releases/download/${REQ_VERSION}/${ASSET_NAME}"
|
||||
GHPROXY_URL="https://ghfast.top/https://github.com/${REPO}/releases/download/${REQ_VERSION}/${ASSET_NAME}"
|
||||
CHECKSUM_URL="https://github.com/${REPO}/releases/download/${REQ_VERSION}/checksums.txt"
|
||||
|
||||
Reference in new issue
Block a user