Skip to content

Commit

Permalink
last try for action
Browse files Browse the repository at this point in the history
  • Loading branch information
Hybes authored Aug 10, 2023
1 parent 8a66beb commit 088216e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ jobs:
if: env.VERSION_CHANGED == 'true'
run: |
$newVersion = $(node -p "require('./package.json').version")
gh release create "v$newVersion" ".\dist\*.exe" --title "v$newVersion" --notes "Release for v$newVersion"
$exeFiles = Get-ChildItem -Path .\dist\ -Filter *.exe
foreach ($file in $exeFiles) {
$filePaths += $file.FullName
}
gh release create "v$newVersion" $filePaths --title "v$newVersion" --notes "Release for v$newVersion"
shell: pwsh
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit 088216e

Please sign in to comment.