File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,12 +79,19 @@ jobs:
7979 CGO_ENABLED=1 GOOS=${{ matrix.GOOS }} GOARCH=${{ matrix.GOARCH }} go build -tags gui -ldflags="${LDFLAGS}" -o "dist/xcstrings-translator-${{ matrix.target }}-gui${{ matrix.ext }}" .
8080 chmod +x dist/*
8181
82- - name : Package as ZIP
82+ - name : Package as ZIP (non-Windows)
83+ if : matrix.GOOS != 'windows'
8384 shell : bash
8485 run : |
8586 cd dist
8687 zip "xcstrings-translator-${{ matrix.target }}.zip" "xcstrings-translator-${{ matrix.target }}${{ matrix.ext }}" "xcstrings-translator-${{ matrix.target }}-gui${{ matrix.ext }}"
8788
89+ - name : Package as ZIP (Windows)
90+ if : matrix.GOOS == 'windows'
91+ shell : pwsh
92+ run : |
93+ Compress-Archive -Path "dist/xcstrings-translator-${{ matrix.target }}${{ matrix.ext }}","dist/xcstrings-translator-${{ matrix.target }}-gui${{ matrix.ext }}" -DestinationPath "dist/xcstrings-translator-${{ matrix.target }}.zip"
94+
8895 - name : Upload artifacts
8996 uses : actions/upload-artifact@v4
9097 with :
You can’t perform that action at this time.
0 commit comments