Skip to content

Commit e8a6728

Browse files
committed
simplify naming and structure for release archives
1 parent 8583a3a commit e8a6728

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,11 @@ jobs:
118118
shell: bash
119119
run: |
120120
PKG_suffix=".tar.gz" ; case ${{ matrix.job.target }} in *-pc-windows-*) PKG_suffix=".zip" ;; esac;
121-
PKG_BASENAME=${{ needs.crate_metadata.outputs.name }}-v${{ needs.crate_metadata.outputs.version }}-${{ matrix.job.target }}
122-
PKG_NAME=${PKG_BASENAME}${PKG_suffix}
121+
PKG_NAME="firefly_cli-${{ matrix.job.target }}${PKG_suffix}"
123122
echo "PKG_NAME=${PKG_NAME}" >> $GITHUB_OUTPUT
124123
125124
PKG_STAGING="${{ env.CICD_INTERMEDIATES_DIR }}/package"
126-
ARCHIVE_DIR="${PKG_STAGING}/${PKG_BASENAME}/"
125+
ARCHIVE_DIR="${PKG_STAGING}/"
127126
mkdir -p "${ARCHIVE_DIR}"
128127
129128
# Binary
@@ -132,8 +131,8 @@ jobs:
132131
# base compressed package
133132
pushd "${PKG_STAGING}/" >/dev/null
134133
case ${{ matrix.job.target }} in
135-
*-pc-windows-*) 7z -y a "${PKG_NAME}" "${PKG_BASENAME}"/* | tail -2 ;;
136-
*) tar czf "${PKG_NAME}" "${PKG_BASENAME}"/* ;;
134+
*-pc-windows-*) 7z -y a "${PKG_NAME}" ./* | tail -2 ;;
135+
*) tar czf "${PKG_NAME}" ./* ;;
137136
esac;
138137
popd >/dev/null
139138

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "firefly_cli"
3-
version = "0.15.5"
3+
version = "0.15.6"
44
rust-version = "1.91.0"
55
edition = "2024"
66
authors = ["Firefly Zero team"]

0 commit comments

Comments
 (0)