on:
workflow_call:
jobs:
rust-release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] include:
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
steps:
- uses: actions/checkout@v6
- name: Download Release Artifacts
uses: actions/download-artifact@v8
with:
repository: kenniston/rust-microservice
name: bundle-${{ github.ref_name }}-${{ matrix.target }}
path: ./.release-artifacts
- name: Extract current release notes
run: |
echo "ℹ️ Extracting current release notes from CHANGELOG.md..."
sed -n '/^## /,/^## /p' CHANGELOG.md | head -n -1 | sed '1d' > RELEASE.md
echo "✅ Current release notes extracted successfully."
- name: Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body_path: RELEASE.md
repository: kenniston/rust-microservice
files: |
./.release-artifacts/server-${{ matrix.target }}
./.release-artifacts/server-${{ matrix.target }}.exe