File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments