diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2f6dc2d..81a1bba 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,7 +3,7 @@ name: Build on: push: branches: [ "main" ] - tags: ["v*"] + tags: ["v*.*.*"] pull_request: branches: [ "main" ] @@ -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-*