Skip to content

Commit 3184ea9

Browse files
authored
Update build.yaml
1 parent 9cce6af commit 3184ea9

File tree

1 file changed

+31
-25
lines changed

1 file changed

+31
-25
lines changed

.github/workflows/build.yaml

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -230,48 +230,54 @@ jobs:
230230
- name: Generate release notes
231231
id: release_notes
232232
run: |
233+
set -e
234+
233235
RELEASE_DATE=$(date +'%Y-%m-%d %H:%M:%S UTC')
234-
cat > release_notes.md << 'EOF'
236+
237+
# Write the initial section of the release notes
238+
cat > release_notes.md <<EOF
235239
## 🤖 Automated Build
236-
240+
237241
This release was automatically generated by GitHub Actions.
238-
239-
**Build Date:** $RELEASE_DATE
242+
243+
**Build Date:** ${RELEASE_DATE}
240244
**Trigger:** ${{ github.event_name }}
241-
245+
242246
### 📦 Included Builds
243-
247+
244248
This release contains builds for the following Binary Ninja versions:
245-
249+
246250
EOF
247-
248-
# Add version info
249-
echo "${{ needs.check-versions.outputs.versions_matrix }}" | jq -c -r '.[] | "- **Version \(.full_version)**: Build `\(.short_name)`"' >> release_notes.md
250-
251-
cat >> release_notes.md << 'EOF'
252-
251+
252+
echo '${{ needs.check-versions.outputs.versions_matrix }}' > versions.json
253+
jq -c -r '.[] | "- **Version \(.full_version)**: Build `\(.short_name)`"' versions.json >> release_notes.md
254+
255+
# Append the remaining sections
256+
cat >> release_notes.md <<EOF
257+
253258
### 📥 Installation
254-
259+
255260
1. Download the appropriate file for your platform and Binary Ninja version
256261
2. Place it in your Binary Ninja plugins directory
257262
3. Restart Binary Ninja
258-
263+
259264
### 🔧 File Naming Convention
260-
265+
261266
All platforms use the same naming format:
262-
263-
- **Stable versions**: `NativePredicateSolver-[full-version].[ext]`
264-
- Example: `NativePredicateSolver-5.0.7290.dll`, `NativePredicateSolver-5.1.8104.so`
265-
- **Dev version**: `NativePredicateSolver-dev.[ext]`
266-
- Example: `NativePredicateSolver-dev.dll`, `NativePredicateSolver-dev.dylib`
267-
267+
268+
- **Stable versions**: \`NativePredicateSolver-[full-version].[ext]\`
269+
- Example: \`NativePredicateSolver-5.0.7290.dll\`, \`NativePredicateSolver-5.1.8104.so\`
270+
- **Dev version**: \`NativePredicateSolver-dev.[ext]\`
271+
- Example: \`NativePredicateSolver-dev.dll\`, \`NativePredicateSolver-dev.dylib\`
272+
268273
---
269-
274+
270275
**Commit:** ${{ github.sha }}
271276
EOF
272-
277+
278+
echo "✅ Generated release notes:"
273279
cat release_notes.md
274-
280+
275281
- name: Create Release
276282
uses: softprops/action-gh-release@v1
277283
with:

0 commit comments

Comments
 (0)