We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74e401a commit df0c38eCopy full SHA for df0c38e
.github/workflows/dist.yml
@@ -63,6 +63,20 @@ jobs:
63
if: matrix.target == 'i686-unknown-linux-musl'
64
run: sudo apt-get install gcc-multilib g++-multilib libc6-dev-i386
65
- run: cargo build --target ${{ matrix.target }} --release
66
+ - name: Archive
67
+ shell: bash
68
+ run: |
69
+ ver=${GITHUB_REF/refs\/*\//}
70
+ archive="dist/cargo-nfpm-$ver-${{ matrix.target }}"
71
+ mkdir -p dist
72
+
73
+ if [ "${{ matrix.os }}" == "windows-latest" ]; then
74
+ 7z a "${archive}.zip" target/${{ matrix.target }}/release/cargo-nfpm.exe
75
+ else
76
+ tar czf "${archive}.tar.gz" -C target/${{ matrix.target }}/release cargo-nfpm
77
+ fi
78
79
+ ls -lah dist/*
80
- name: Upload artifacts
81
uses: actions/upload-artifact@v4
82
with:
0 commit comments