@@ -74,19 +74,25 @@ jobs:
7474 # For Windows GNU, link statically
7575 RUSTFLAGS : ${{ matrix.target == 'x86_64-pc-windows-gnu' && '-C target-feature=+crt-static' || '' }}
7676
77- - name : Package binary
77+ - name : Package zip
7878 run : |
79+ dir="${{ matrix.artifact }}"
80+ mkdir -p "$dir"
7981 src="target/${{ matrix.target }}/release/fintool"
8082 if [[ "${{ matrix.target }}" == *"windows"* ]]; then
81- src="${src}.exe"
83+ cp "${src}.exe" "$dir/fintool.exe"
84+ else
85+ cp "$src" "$dir/fintool"
86+ chmod +x "$dir/fintool"
8287 fi
83- cp "$src" "${{ matrix.artifact }}"
88+ cp config.toml.default "$dir/"
89+ zip -r "${{ matrix.artifact }}.zip" "$dir"
8490
8591 - name : Upload artifact
8692 uses : actions/upload-artifact@v4
8793 with :
8894 name : ${{ matrix.artifact }}
89- path : ${{ matrix.artifact }}
95+ path : ${{ matrix.artifact }}.zip
9096
9197 release :
9298 needs : build
@@ -103,7 +109,7 @@ jobs:
103109 run : |
104110 cd artifacts
105111 for dir in */; do
106- for file in "$dir"*; do
112+ for file in "$dir"*.zip ; do
107113 sha256sum "$file" >> ../checksums.txt
108114 done
109115 done
@@ -114,8 +120,8 @@ jobs:
114120 with :
115121 generate_release_notes : true
116122 files : |
117- artifacts/fintool-linux-x86_64/fintool-linux-x86_64
118- artifacts/fintool-linux-aarch64/fintool-linux-aarch64
119- artifacts/fintool-macos-aarch64/fintool-macos-aarch64
120- artifacts/fintool-windows-x86_64.exe/fintool-windows-x86_64.exe
123+ artifacts/fintool-linux-x86_64/fintool-linux-x86_64.zip
124+ artifacts/fintool-linux-aarch64/fintool-linux-aarch64.zip
125+ artifacts/fintool-macos-aarch64/fintool-macos-aarch64.zip
126+ artifacts/fintool-windows-x86_64.exe/fintool-windows-x86_64.exe.zip
121127 checksums.txt
0 commit comments