Skip to content

Commit 5a7b4e0

Browse files
authored
feat(ci): generate archive with Windows execuatables
1 parent d291d2a commit 5a7b4e0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

+10
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ jobs:
6464
- name: Rename binary (windows)
6565
run: mv target/${{ matrix.platform.target }}/release/envfetch.exe target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
6666
if: matrix.platform.os_name == 'Windows-x86_64'
67+
- name: Generate (Windows)
68+
run: |
69+
cd target/${{ matrix.platform.target }}/release
70+
tar.exe -a -c -f envfetch-windows-amd64.zip ${{ matrix.platform.bin }}
71+
if: matrix.platform.os_name == 'Windows-x86_64'
6772
- name: Generate Debian package
6873
run: cargo install cargo-deb && cargo deb --output target/debian/envfetch-debian.deb
6974
if: matrix.platform.os_name == 'Linux-x86_64'
@@ -85,3 +90,8 @@ jobs:
8590
files: |
8691
target/debian/envfetch-debian.deb
8792
target/debian/envfetch-debian.deb.sha256
93+
- name: Release Windows archive to GitHub
94+
uses: softprops/action-gh-release@v1
95+
if: matrix.platform.os_name == 'Windows-x86_64'
96+
with:
97+
files: target/${{ matrix.platform.target }}/release/envfetch-windows-amd64.zip

0 commit comments

Comments
 (0)