Skip to content

Commit

Permalink
fix: use vanilla gh release action
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcoeffic committed Nov 4, 2024
1 parent e35f430 commit a3a2eb1
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:
ARCH: ${{ matrix.platform.os-name }}
run: |
mv "target/$ARCH/release/dive" "dive-$ARCH"
- 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 a3a2eb1

Please sign in to comment.