Skip to content

Commit

Permalink
fix: extra-files need to be empty as well
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcoeffic committed Nov 4, 2024
1 parent e35f430 commit 4fa4d4d
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 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 @@ -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
Expand All @@ -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-*

0 comments on commit 4fa4d4d

Please sign in to comment.