Skip to content

Commit

Permalink
fix: release binaries (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: raphaelcoeffic <[email protected]>
  • Loading branch information
raphaelcoeffic and raphaelcoeffic authored Nov 5, 2024
1 parent e35f430 commit 47e5b5e
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build
on:
push:
branches: [ "main" ]
tags: ["v*"]
tags: ["v*.*.*"]
pull_request:
branches: [ "main" ]

Expand Down Expand Up @@ -45,16 +45,21 @@ jobs:
args: "--locked --release --features embedded_image"
strip: true

- name: Rename binary
env:
TARGET: ${{ matrix.platform.target }}
run: |
mv "target/$TARGET/release/dive" "dive-$TARGET"
- name: Upload artifacts - binary
uses: actions/upload-artifact@v4
with:
name: binary-${{ matrix.platform.target }}
path: |
target/${{ matrix.platform.target }}/release/dive
path: dive-*

- name: Publish artifacts and release
uses: houseabsolute/actions-rust-release@v0
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
executable-name: dive
target: ${{ matrix.platform.target }}
changes-file:
draft: true
files: dive-*

0 comments on commit 47e5b5e

Please sign in to comment.