Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BFergerson authored Oct 17, 2024
1 parent ebdcdff commit 4b6672b
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,25 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
dmg_file=$(ls *.dmg)
msi_file=$(ls *.msi)
deb_file=$(ls *.deb)
gh release create "${{ github.ref_name }}" "$dmg_file" "$msi_file" "$deb_file" -t "${{ github.ref_name }}" --draft --generate-notes
dmg_files=$(ls *.dmg 2>/dev/null || echo "")
msi_file=$(ls *.msi 2>/dev/null || echo "")
deb_file=$(ls *.deb 2>/dev/null || echo "")
# Check if the files exist before proceeding
if [[ -z "$dmg_files" ]]; then
echo "No .dmg files found."
exit 1
fi
if [[ -z "$msi_file" ]]; then
echo "No .msi file found."
exit 1
fi
if [[ -z "$deb_file" ]]; then
echo "No .deb file found."
exit 1
fi
gh release create "${{ github.ref_name }}" $dmg_files "$msi_file" "$deb_file" \
-t "${{ github.ref_name }}" --draft --generate-notes

0 comments on commit 4b6672b

Please sign in to comment.