Skip to content

Commit

Permalink
Fix github action release step
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronRP committed Sep 26, 2024
1 parent 8e2e40e commit 40f536e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,19 @@ jobs:
wget -O _releases/tc2-firmware.sha256 https://github.com/TheCacophonyProject/tc2-firmware/releases/download/v${RP2040_FIRMWARE_VERSION}/tc2-firmware.sha256
wget -O _releases/tc2-firmware https://github.com/TheCacophonyProject/tc2-firmware/releases/download/v${RP2040_FIRMWARE_VERSION}/tc2-firmware
- name: Build the project
run: cargo build --release --target=aarch64-unknown-linux-musl
- name: Extract Tag Name
if: startsWith(github.ref, 'refs/tags/')
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Build the Debian package
run: cargo deb --target=aarch64-unknown-linux-musl --output tc2-agent_${TAG_NAME}_arm64.deb

- name: Create Debian package
run: cargo deb --target=aarch64-unknown-linux-musl --output tc2-agent_${GITHUB_REF#refs/tags/v}_arm64.deb
- name: Verify the output file
run: ls -l tc2-agent_${TAG_NAME}_arm64.deb

- name: Upload release assets
if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
artifacts: tc2-agent_${GITHUB_REF#refs/tags/v}_arm64.deb
artifacts: tc2-agent_${TAG_NAME}_arm64.deb
allowUpdates: true

0 comments on commit 40f536e

Please sign in to comment.