Skip to content

Commit

Permalink
fix: Update release workflow to build correct binary
Browse files Browse the repository at this point in the history
  • Loading branch information
willibrandon committed Jan 13, 2025
1 parent 71a804f commit 05d10aa
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@ on:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: write
packages: write
issues: write

env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for changelog generation
fetch-depth: 0

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -25,7 +31,6 @@ jobs:
./scripts/update_changelog.sh ${{ github.ref_name }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
name: Release ${{ github.ref_name }}
Expand Down Expand Up @@ -59,7 +64,7 @@ jobs:
targets: ${{ matrix.target }}

- name: Build Release Binary
run: cargo build --release --target ${{ matrix.target }}
run: cargo build --release --target ${{ matrix.target }} -p rustscout-cli

- name: Package Release Assets
shell: bash
Expand All @@ -74,6 +79,5 @@ jobs:
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
with:
files: |
rustscout-${{ matrix.name }}.*
files: rustscout-${{ matrix.name }}.*
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 05d10aa

Please sign in to comment.