Skip to content

Commit d39b2b0

Browse files
committed
ci(release) : add .exe for windows
1 parent 429e695 commit d39b2b0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ jobs:
3838
cp README.md install.sh CHANGELOG.md scan2epub
3939
4040
- name: Build
41-
run: GOARCH=${{ matrix.arch }} GOOS=${{ matrix.os }} go build -o scan2epub/scan2epub .
41+
run: |
42+
name="scan2epub"
43+
if [ "${{ matrix.os }}" = "windows" ]; then
44+
name="${name}.exe"
45+
fi
46+
GOARCH=${{ matrix.arch }} GOOS=${{ matrix.os }} go build -o "scan2epub/${name}" .
4247
4348
- name: Archive
4449
run: |

0 commit comments

Comments
 (0)