Skip to content

Commit 9ea663b

Browse files
fix: use unique artifact names before uploading
bench: 2274658
1 parent 3a0e283 commit 9ea663b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,27 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v3
3535

36-
- name: Install Rust
36+
- name: Install rust
3737
uses: actions-rust-lang/setup-rust-toolchain@v1
3838
with:
3939
toolchain: stable
4040
target: ${{ matrix.target }}
4141
override: true
4242

43-
- name: Build Release
43+
- name: Build release
4444
run: cargo build --release --target ${{ matrix.target }}
4545

46-
- name: Upload Artifact
46+
- name: Upload artifact
4747
uses: actions/upload-artifact@v4
4848
with:
4949
name: byte-knight-${{ matrix.target }}${{ matrix.extension }}
5050
path: ./target/${{ matrix.target }}/release/${{ matrix.artifact_name }}
5151
retention-days: 1
52+
53+
- name: Copy artifact
54+
run: cp ./target/${{ matrix.target }}/release/${{ matrix.artifact_name }} ./target/${{ matrix.artifact_name }}-${{matrix.target}}${{ matrix.extension }}
55+
5256
- name: Upload to release
5357
uses: softprops/action-gh-release@v2
5458
with:
55-
files: ./target/${{ matrix.target }}/release/${{ matrix.artifact_name }}${{ matrix.extension }}
59+
files: ./target/${{ matrix.artifact_name }}-${{matrix.target}}${{ matrix.extension }}

0 commit comments

Comments
 (0)