From 4fa4d4deaba6285703c9d9916054244de41ba845 Mon Sep 17 00:00:00 2001 From: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com> Date: Mon, 4 Nov 2024 12:25:30 +0100 Subject: [PATCH] fix: extra-files need to be empty as well --- .github/workflows/rust.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2f6dc2d..b89c253 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" ] @@ -33,7 +33,7 @@ jobs: - name: Upload artifacts - base image uses: actions/upload-artifact@v4 with: - name: base-${{ matrix.platform.target }} + name: base-${{ matrix.platform.os-name }} path: | base.tar.xz @@ -45,16 +45,22 @@ jobs: args: "--locked --release --features embedded_image" strip: true + - name: Rename binary + env: + ARCH: ${{ matrix.platform.os-name }} + TARGET: ${{ matrix.platform.target }} + run: | + mv "target/$TARGET/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 + name: binary-${{ matrix.platform.os-name }} + 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-*