Skip to content

Commit fec19a8

Browse files
committed
updated script to rename packages
1 parent f97bbf6 commit fec19a8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,15 @@ jobs:
4949
- name: Rename packages
5050
run: |
5151
if [ "$RUNNER_OS" == "Linux" ]; then
52-
mv dist/${{ matrix.artifact_name }} dist/${{ matrix.artifact_name }}_Linux
53-
echo "file_name=dist/${{ matrix.artifact_name }}_Linux" >> $GITHUB_ENV
52+
echo "file_name=dist/research-mnemonic_linux" >> $GITHUB_ENV
53+
mv dist/${{ matrix.artifact_name }} ${{ env.file_name }}
5454
elif [ "$RUNNER_OS" == "Windows" ]; then
55-
mv dist/${{ matrix.artifact_name }} dist/${{ matrix.artifact_name }}_Windows.exe
56-
echo "file_name=dist/${{ matrix.artifact_name }}_Windows.exe" >> $GITHUB_ENV
57-
elif [ "$RUNNER_OS" == "Mac" ]; then
58-
mv dist/${{ matrix.artifact_name }} dist/${{ matrix.artifact_name }}_Mac
59-
echo "file_name=dist/${{ matrix.artifact_name }}_Mac" >> $GITHUB_ENV
55+
echo "file_name=dist/research-mnemonic-windows.exe" >> $GITHUB_ENV
56+
mv dist/${{ matrix.artifact_name }} ${{ env.file_name }}
57+
58+
elif [ "$RUNNER_OS" == "macOS" ]; then
59+
echo "file_name=dist/research-mnemonic_mac" >> $GITHUB_ENV
60+
mv dist/${{ matrix.artifact_name }} ${{ env.file_name }}
6061
fi
6162
ls -R
6263
shell: bash

0 commit comments

Comments
 (0)