File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 5454 - name : Rename binary (windows)
5555 run : mv target/${{ matrix.platform.target }}/release/envfetch.exe target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
5656 if : matrix.platform.os_name == 'Windows-x86_64'
57+ - name : Generate Debian package
58+ run : cargo install cargo-deb && cargo deb --output target/debian/envfetch-debian.deb
59+ if : matrix.platform.os_name == 'Linux-x86_64'
60+ - name : Generate SHA-256 for Debian package
61+ run : shasum -a 256 target/debian/envfetch-debian.deb | cut -d ' ' -f 1 > target/debian/envfetch-debian.deb.sha256
62+ if : matrix.platform.os_name == 'Linux-x86_64'
5763 - name : Generate SHA-256
5864 run : shasum -a 256 target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} | cut -d ' ' -f 1 > target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}.sha256
5965 - name : Release binary and SHA-256 checksum to GitHub
6268 files : |
6369 target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
6470 target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}.sha256
71+ - name : Release Debian package and SHA-256 checksum to GitHub
72+ uses : softprops/action-gh-release@v1
73+ if : matrix.platform.os_name == 'Linux-x86_64'
74+ with :
75+ files : |
76+ target/debian/envfetch-debian.deb
77+ target/debian/envfetch-debian.deb.sha256
You can’t perform that action at this time.
0 commit comments