fix(release): remove legacy download aliases
This commit is contained in:
parent
ec28babaac
commit
ec004e9328
1 changed files with 5 additions and 12 deletions
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
|
|
@ -673,7 +673,7 @@ jobs:
|
|||
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' }}
|
||||
|
||||
steps:
|
||||
- name: Upload compatibility aliases for older updater clients
|
||||
- name: Upload stable download aliases
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
|
|
@ -684,7 +684,7 @@ jobs:
|
|||
TMP_DIR="$(mktemp -d)"
|
||||
trap 'rm -rf "$TMP_DIR"' EXIT
|
||||
|
||||
declare -A COMPATIBILITY_ALIASES=(
|
||||
declare -A STABLE_ALIASES=(
|
||||
["Agent.Teams.AI-arm64.dmg"]="Agent.Teams.AI-${VERSION}-arm64.dmg"
|
||||
["Agent.Teams.AI-x64.dmg"]="Agent.Teams.AI-${VERSION}-x64.dmg"
|
||||
["Agent.Teams.AI.Setup.exe"]="Agent.Teams.AI.Setup.${VERSION}.exe"
|
||||
|
|
@ -692,18 +692,11 @@ jobs:
|
|||
["agent-teams-ai-amd64.deb"]="agent-teams-ai_${VERSION}_amd64.deb"
|
||||
["agent-teams-ai-x86_64.rpm"]="agent-teams-ai-${VERSION}.x86_64.rpm"
|
||||
["agent-teams-ai.pacman"]="agent-teams-ai-${VERSION}.pacman"
|
||||
["Claude-Agent-Teams-UI-arm64.dmg"]="Agent.Teams.AI-${VERSION}-arm64.dmg"
|
||||
["Claude-Agent-Teams-UI-x64.dmg"]="Agent.Teams.AI-${VERSION}-x64.dmg"
|
||||
["Claude-Agent-Teams-UI-Setup.exe"]="Agent.Teams.AI.Setup.${VERSION}.exe"
|
||||
["Claude-Agent-Teams-UI.AppImage"]="Agent.Teams.AI-${VERSION}.AppImage"
|
||||
["Claude-Agent-Teams-UI-amd64.deb"]="agent-teams-ai_${VERSION}_amd64.deb"
|
||||
["Claude-Agent-Teams-UI-x86_64.rpm"]="agent-teams-ai-${VERSION}.x86_64.rpm"
|
||||
["Claude-Agent-Teams-UI.pacman"]="agent-teams-ai-${VERSION}.pacman"
|
||||
)
|
||||
|
||||
for ALIAS_NAME in "${!COMPATIBILITY_ALIASES[@]}"; do
|
||||
VERSIONED_NAME="${COMPATIBILITY_ALIASES[$ALIAS_NAME]}"
|
||||
echo "Uploading compatibility alias: ${ALIAS_NAME} -> ${VERSIONED_NAME}"
|
||||
for ALIAS_NAME in "${!STABLE_ALIASES[@]}"; do
|
||||
VERSIONED_NAME="${STABLE_ALIASES[$ALIAS_NAME]}"
|
||||
echo "Uploading stable alias: ${ALIAS_NAME} -> ${VERSIONED_NAME}"
|
||||
gh release download "${TAG}" \
|
||||
--repo "$REPO" \
|
||||
--pattern "${VERSIONED_NAME}" \
|
||||
|
|
|
|||
Loading…
Reference in a new issue