Skip to content

Commit 6f81681

Browse files
committed
Updates
1 parent 2f6d6cb commit 6f81681

1 file changed

Lines changed: 22 additions & 10 deletions

File tree

.github/workflows/attach-artifacts.yml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
description: "Release tag (e.g. v1.9.0)"
88
required: true
99
default: "v1.9.0"
10+
11+
# TODO - Remove before merging!
1012
push:
1113
branches:
1214
- jdetter/attach-artifacts-workflow
@@ -32,21 +34,31 @@ jobs:
3234
run: |
3335
set -euo pipefail
3436
37+
# TODO - Remove before merging!
38+
RELEASE_TAG=v1.9.0
3539
FULL_URL="$BASE_URL/$RELEASE_TAG"
3640
3741
mkdir -p artifacts
3842
cd artifacts
3943
40-
wget "$FULL_URL/spacetime-aarch64-apple-darwin.tar.gz"
41-
wget "$FULL_URL/spacetime-aarch64-unknown-linux-gnu.tar.gz"
42-
wget "$FULL_URL/spacetime-x86_64-apple-darwin.tar.gz"
43-
wget "$FULL_URL/spacetime-x86_64-pc-windows-msvc.zip"
44-
wget "$FULL_URL/spacetime-x86_64-unknown-linux-gnu.tar.gz"
45-
wget "$FULL_URL/spacetimedb-update-aarch64-apple-darwin"
46-
wget "$FULL_URL/spacetimedb-update-aarch64-unknown-linux-gnu"
47-
wget "$FULL_URL/spacetimedb-update-x86_64-apple-darwin"
48-
wget "$FULL_URL/spacetimedb-update-x86_64-pc-windows-msvc.exe"
49-
wget "$FULL_URL/spacetimedb-update-x86_64-unknown-linux-gnu"
44+
download() {
45+
local filename="$1"
46+
if ! wget -q "${FULL_URL}/${filename}" -O "${filename}"; then
47+
echo "Failed to download ${filename}"
48+
exit 1
49+
fi
50+
}
51+
52+
download "spacetime-aarch64-apple-darwin.tar.gz"
53+
download "spacetime-aarch64-unknown-linux-gnu.tar.gz"
54+
download "spacetime-x86_64-apple-darwin.tar.gz"
55+
download "spacetime-x86_64-pc-windows-msvc.zip"
56+
download "spacetime-x86_64-unknown-linux-gnu.tar.gz"
57+
download "spacetimedb-update-aarch64-apple-darwin"
58+
download "spacetimedb-update-aarch64-unknown-linux-gnu"
59+
download "spacetimedb-update-x86_64-apple-darwin"
60+
download "spacetimedb-update-x86_64-pc-windows-msvc.exe"
61+
download "spacetimedb-update-x86_64-unknown-linux-gnu"
5062
5163
- name: Upload artifacts to GitHub Release
5264
env:

0 commit comments

Comments
 (0)