Skip to content

Commit 85c89ab

Browse files
committed
fix: release file include version
1 parent 0fc1979 commit 85c89ab

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,17 @@ jobs:
3838
- name: Pack .deb files into tar.gz
3939
id: pack
4040
run: |
41+
TAG_NAME="${{ github.ref_name }}"
4142
CODENAME=$(echo "${{ matrix.version }}" | cut -d':' -f2)
42-
if [[ "${{ matrix.os }}" == *"-arm"* ]]; then
43-
ARCH="arm64"
44-
else
45-
ARCH="amd64"
46-
fi
43+
44+
ARCH="amd64"
45+
[[ "${{ matrix.os }}" == *arm* ]] && ARCH="arm64"
4746
4847
cd ${{ github.workspace }}/output
49-
tar -czf ../openssh-${CODENAME}-${ARCH}.tar.gz *.deb
48+
tar -cvzf ../openssh-${TAG_NAME}-${CODENAME}-${ARCH}.tar.gz *.deb
5049
5150
SAFE_VERSION=$(echo "${{ matrix.version }}" | sed 's/:/-/g')
52-
echo "artifact_name=${SAFE_VERSION}-${{ matrix.os }}" >> $GITHUB_OUTPUT
51+
echo "artifact_name=${SAFE_VERSION}-${ARCH}" >> $GITHUB_OUTPUT
5352
5453
- uses: actions/upload-artifact@v4
5554
with:

0 commit comments

Comments
 (0)