@@ -156,18 +156,21 @@ jobs:
156
156
ref : ${{ github.event.inputs.commit_sha }}
157
157
158
158
- name : Download all artifacts
159
- uses : actions/download-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
159
+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
160
160
with :
161
161
path : artifacts
162
162
163
163
- name : Create Release
164
164
env :
165
165
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
166
166
run : |
167
- RELEASE_TAG="v0.158.0"
168
- RELEASE_NAME="Release v0.158.0"
167
+ set -ex
168
+
169
+ VERSION=$(grep '^version = ' source/rust/autonomy_command/Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
170
+ RELEASE_TAG="v$VERSION"
171
+ RELEASE_NAME="Release v$VERSION"
169
172
COMMIT_SHA="${{ github.event.inputs.commit_sha || github.sha }}"
170
- RELEASE_BODY="Release v0.158.0 "
173
+ RELEASE_BODY="Release v$VERSION "
171
174
172
175
gh release create "$RELEASE_TAG" \
173
176
--title "$RELEASE_NAME" \
@@ -181,8 +184,10 @@ jobs:
181
184
for binary_file in "$artifact_dir"/*; do
182
185
if [ -f "$binary_file" ]; then
183
186
asset_name="autonomy-${target}"
184
- echo "Uploading $binary_file as $asset_name"
185
- gh release upload "$RELEASE_TAG" "$binary_file#$asset_name"
187
+ # Copy binary with the target-specific name
188
+ cp "$binary_file" "$asset_name"
189
+ echo "Uploading $asset_name"
190
+ gh release upload "$RELEASE_TAG" "$asset_name"
186
191
fi
187
192
done
188
193
fi
0 commit comments