Skip to content

Commit 4ffc2fa

Browse files
committed
ci(workflows): fix window
1 parent fb30aa2 commit 4ffc2fa

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,17 @@ jobs:
7676
go build -v -ldflags "-X main.version=${{ steps.version.outputs.VERSION }}" -o ${{ matrix.artifact_name }}
7777
7878
- name: Create release asset
79+
if: matrix.os != 'windows-latest'
7980
run: |
8081
cd window
8182
zip -r ${{ matrix.asset_name }} ${{ matrix.artifact_name }} ./dist
8283
84+
- name: Create release asset (Windows)
85+
if: matrix.os == 'windows-latest'
86+
run: |
87+
cd window
88+
powershell -Command "Compress-Archive -Path ${{ matrix.artifact_name }},dist -DestinationPath ${{ matrix.asset_name }}"
89+
8390
- name: Upload release asset
8491
uses: softprops/action-gh-release@v1
8592
with:

0 commit comments

Comments
 (0)