Skip to content

Commit d5c42d0

Browse files
authored
Update main.yml
please
1 parent bf23590 commit d5c42d0

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,16 @@ jobs:
1818
include:
1919
- os: ubuntu-latest
2020
target: x86_64-unknown-linux-gnu
21-
artifact_name: yanimator_linux
22-
asset_name: yanimator-linux-x86_64
23-
binstall_suffix: x86_64-unknown-linux-gnu.tar.gz
21+
artifact_name: yanimator-linux-x86_64
22+
asset_name: yanimator-linux-x86_64.tar.gz
2423
- os: windows-latest
2524
target: x86_64-pc-windows-msvc
26-
artifact_name: yanimator_windows.exe
27-
asset_name: yanimator-windows-x86_64.exe
28-
binstall_suffix: x86_64-pc-windows-msvc.tar.gz
25+
artifact_name: yanimator-windows-x86_64.exe
26+
asset_name: yanimator-windows-x86_64.tar.gz
2927
- os: macos-latest
3028
target: x86_64-apple-darwin
31-
artifact_name: yanimator_macos
32-
asset_name: yanimator-macos-x86_64
33-
binstall_suffix: x86_64-apple-darwin.tar.gz
29+
artifact_name: yanimator-macos-x86_64
30+
asset_name: yanimator-macos-x86_64.tar.gz
3431

3532
steps:
3633
- uses: actions/checkout@v4
@@ -47,16 +44,11 @@ jobs:
4744
shell: bash
4845
run: |
4946
cd target/${{ matrix.target }}/release
50-
if [ "${{ matrix.os }}" = "windows-latest" ]; then
51-
cp ${{ matrix.artifact_name }} ../../${{ matrix.asset_name }}
52-
else
53-
cp ${{ matrix.artifact_name }} ../../${{ matrix.asset_name }}
54-
fi
47+
cp ${{ matrix.artifact_name }} ../../${{ matrix.asset_name }}
5548
5649
- name: Upload Artifact
5750
uses: actions/upload-artifact@v4
5851
with:
5952
name: ${{ matrix.artifact_name }}
6053
path: |
6154
target/${{ matrix.asset_name }}
62-
${{ env.BINARY_NAME }}-${{ needs.check-version.outputs.version }}-${{ matrix.binstall_suffix }}

0 commit comments

Comments
 (0)