Skip to content

Commit 89ab24e

Browse files
committed
Fix: not same folder
1 parent 9365a1a commit 89ab24e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ jobs:
5353
5454
# dist配下から圧縮して "dist/" プレフィックスがZIPに入らないようにする
5555
Push-Location dist
56-
Compress-Archive -Path $pkgRoot -DestinationPath (Join-Path .. "out/$zipName") -Force
56+
# $pkgRoot フォルダ自体ではなく「中身」をZIPに入れる(同名フォルダ二重化を防ぐ)
57+
Compress-Archive -Path (Join-Path $pkgRoot '*') -DestinationPath (Join-Path .. "out/$zipName") -Force
5758
Pop-Location
5859
5960
# 後続stepで使うために環境変数へ
@@ -66,7 +67,7 @@ jobs:
6667
with:
6768
# Artifactは“フォルダ”をアップしておく(zip-in-zip回避)
6869
name: sam_frame_export_filter-windows-x64
69-
path: dist/${{ env.PKG_ROOT }}
70+
path: dist/${{ env.PKG_ROOT }}/*
7071

7172
- name: Upload to GitHub Release
7273
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)