Skip to content

Commit

Permalink
Create release and upload artifacts at once
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyDanny committed May 11, 2024
1 parent 6620d8a commit b1d3e5c
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions tools/create-github-release.sh
Expand Up @@ -12,20 +12,11 @@ release_notes=$(mktemp)
# Create GitHub Release

release_title="$(sed -n '1s/^## //p' CHANGELOG.md)"
gh release create "$version" --title "$release_title" -F "$release_notes"
gh release create "$version" --title "$release_title" -F "$release_notes" \
"bazel.tar.gz" \
"bazel.tar.gz.sha256" \
"portable_swiftlint.zip" \
"SwiftLint.pkg" \
"SwiftLintBinary-macos.artifactbundle.zip"

rm "$release_notes"

# Upload release assets

files_to_upload=(
"bazel.tar.gz"
"bazel.tar.gz.sha256"
"portable_swiftlint.zip"
"SwiftLint.pkg"
"SwiftLintBinary-macos.artifactbundle.zip"
)

for file in "${files_to_upload[@]}"; do
gh release upload "$version" "$file"
done

0 comments on commit b1d3e5c

Please sign in to comment.