diff --git a/.changes/fix-debug.md b/.changes/fix-debug.md new file mode 100644 index 0000000000..136c080d75 --- /dev/null +++ b/.changes/fix-debug.md @@ -0,0 +1,5 @@ +--- +"action": patch +--- + +Fixes the `includeDebug` input usage. diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 13917c8642..0efbd6b2aa 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -46,6 +46,7 @@ jobs: releaseBody: "See the assets to download this version and install." releaseDraft: true prerelease: false + includeDebug: true - uses: ./ env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/upload-release-assets.ts b/src/upload-release-assets.ts index 028aadcda7..45a7ba736f 100644 --- a/src/upload-release-assets.ts +++ b/src/upload-release-assets.ts @@ -17,7 +17,7 @@ export default async function uploadAssets(uploadUrl: string, assets: string[]) const ext = path.extname(assetPath) const filename = path.basename(assetPath).replace(ext, '') - const assetName = path.dirname(assetPath).endsWith('debug') ? `${filename}-debug${ext}` : `${filename}${ext}` + const assetName = path.dirname(assetPath).includes(`target${path.sep}debug`) ? `${filename}-debug${ext}` : `${filename}${ext}` console.log(`Uploading ${assetName}...`) await github.repos.uploadReleaseAsset({ url: uploadUrl,