Skip to content

Commit 1482cf5

Browse files
committed
Update build-linux.yml
1 parent bbd0e93 commit 1482cf5

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/build-linux.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ jobs:
158158
run: |
159159
mkdir -p .artifacts/installer
160160
mkdir -p .artifacts/public
161+
mkdir -p .artifacts/archive
161162
162163
# Copy and rename portable version
163164
cp -r ../VSCode-linux-x64 ./Roopik-Portable-linux-x64
@@ -172,21 +173,17 @@ jobs:
172173
echo "Warning: DEB file not found, skipping installer artifact"
173174
fi
174175
175-
# Build distro-agnostic tar.gz archive from the built app tree.
176-
# Source for AUR (roopik-bin) and any non-Debian Linux user.
177-
TARBALL=".artifacts/public/roopik-linux-x64.tar.gz"
176+
# Distro-agnostic tar.gz archive — for AUR (roopik-bin) and any
177+
# non-Debian Linux user. Uploaded as a SEPARATE GitHub artifact.
178+
TARBALL=".artifacts/archive/roopik-linux-x64-latest.tar.gz"
178179
tar -czf "$TARBALL" -C .. VSCode-linux-x64
179180
sha256sum "$TARBALL" | awk '{print $1}' > "${TARBALL}.sha256"
180-
cp "$TARBALL" .artifacts/installer/
181-
cp "${TARBALL}.sha256" .artifacts/installer/
182-
cp "$TARBALL" .artifacts/public/roopik-linux-x64-latest.tar.gz
183-
cp "${TARBALL}.sha256" .artifacts/public/roopik-linux-x64-latest.tar.gz.sha256
184181
185182
# List what we're uploading
186183
echo "Artifact contents:"
187184
ls -lah Roopik-Portable-linux-x64/
188185
ls -lah .artifacts/
189-
ls -lah .artifacts/public/
186+
ls -lah .artifacts/archive/
190187
191188
- name: Upload Linux artifacts (x64)
192189
uses: actions/upload-artifact@v6
@@ -197,6 +194,13 @@ jobs:
197194
Roopik-Portable-linux-x64/
198195
retention-days: 10
199196

197+
- name: Upload Linux archive artifact (x64)
198+
uses: actions/upload-artifact@v6
199+
with:
200+
name: roopik-linux-archive
201+
path: .artifacts/archive/
202+
retention-days: 10
203+
200204
- name: Install AWS CLI
201205
continue-on-error: true
202206
run: |
@@ -230,7 +234,7 @@ jobs:
230234
# pointing at linux/roopik-linux-latest.deb keep updating.
231235
aws s3 cp "$deb_file" "s3://${R2_BUCKET}/linux/roopik-linux-latest.deb" --endpoint-url "$endpoint" --no-progress
232236
233-
tarball=".artifacts/public/roopik-linux-x64-latest.tar.gz"
237+
tarball=".artifacts/archive/roopik-linux-x64-latest.tar.gz"
234238
tarball_sha_file="${tarball}.sha256"
235239
tarball_present=0
236240
if [ -f "$tarball" ]; then

0 commit comments

Comments
 (0)