alpha
Login
or
Join now
sickday.tngl.sh
/
hla-client
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
A RuneTek3 client (377) that is deobfuscated, converted to Kotlin, and includes QoL improvements.
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
fix: package collision
author
Patrick W.
date
1 month ago
(May 7, 2026, 4:08 PM -0400)
commit
b071eaaf
b071eaaf02b578d12c4f7779d6cfdf09bebcca59
parent
ac71296e
ac71296e01d764d8bbf197c926f58fafd28d7eee
+31
-1
1 changed file
Expand all
Collapse all
Unified
Split
.gitlab-ci.yml
+31
-1
.gitlab-ci.yml
Reviewed
···
118
118
119
119
publish:
120
120
stage: publish
121
121
-
image: curlimages/curl:latest
121
121
+
image: alpine:latest
122
122
tags:
123
123
- docker
124
124
parallel:
···
134
134
artifacts: true
135
135
rules:
136
136
- if: $CI_COMMIT_BRANCH == "main"
137
137
+
before_script:
138
138
+
- apk add --no-cache curl jq
139
139
+
# GitLab generic packages append on duplicate uploads (every push leaves an
140
140
+
# extra copy in the registry). Workflow: find any existing files in
141
141
+
# ${PACKAGE_NAME}/latest matching this region's zip name, DELETE them, then
142
142
+
# upload fresh. Each parallel job only touches its own ZIP_NAME so the two
143
143
+
# regions don't race.
137
144
script:
138
145
- export ZIP_NAME="hla-${REGION}-client.zip"
139
146
- echo "Publishing ${ZIP_NAME} @ ${CI_COMMIT_SHORT_SHA}"
147
147
+
148
148
+
# Find package id for hla-client/latest (empty string if first publish)
149
149
+
- |
150
150
+
PACKAGE_ID=$(curl --silent --fail --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
151
151
+
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages?package_name=${PACKAGE_NAME}&package_version=latest" \
152
152
+
| jq -r '.[0].id // empty')
153
153
+
echo "Existing package id: '${PACKAGE_ID:-<none>}'"
154
154
+
155
155
+
# Delete prior copies of THIS zip name only (preserves other regions' zips)
156
156
+
- |
157
157
+
if [ -n "${PACKAGE_ID}" ]; then
158
158
+
FILE_IDS=$(curl --silent --fail --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
159
159
+
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/${PACKAGE_ID}/package_files" \
160
160
+
| jq -r --arg name "${ZIP_NAME}" '.[] | select(.file_name == $name) | .id')
161
161
+
for fid in ${FILE_IDS}; do
162
162
+
echo "Deleting stale file id ${fid} (${ZIP_NAME})"
163
163
+
curl --silent --fail --request DELETE \
164
164
+
--header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
165
165
+
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/${PACKAGE_ID}/package_files/${fid}"
166
166
+
done
167
167
+
fi
168
168
+
169
169
+
# Upload the new zip
140
170
- |
141
171
curl --fail --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
142
172
--upload-file "${ZIP_NAME}" \