Skip to content

Commit 2956ec1

Browse files
authored
Update CI.yml
updated file name
1 parent 8eeba38 commit 2956ec1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,22 @@ jobs:
4848
4949
- name: Rename packages
5050
run: |
51-
ls -al
52-
pwd
5351
if [ "$RUNNER_OS" == "Linux" ]; then
5452
mv dist/${{ matrix.artifact_name }} dist/${{ matrix.artifact_name }}_Linux
53+
echo "file_name=dist/${{ matrix.artifact_name }}_Linux" >> $GITHUB_ENV
5554
elif [ "$RUNNER_OS" == "Windows" ]; then
5655
mv dist/${{ matrix.artifact_name }} dist/${{ matrix.artifact_name }}_Windows.exe
56+
echo "file_name=dist/${{ matrix.artifact_name }}_Windows.exe" >> $GITHUB_ENV
5757
elif [ "$RUNNER_OS" == "Mac" ]; then
5858
mv dist/${{ matrix.artifact_name }} dist/${{ matrix.artifact_name }}_Mac
59+
echo "file_name=dist/${{ matrix.artifact_name }}_Mac" >> $GITHUB_ENV
5960
fi
61+
ls -al
6062
shell: bash
6163

6264
- name: Release
6365
uses: softprops/action-gh-release@v1
6466
if: startsWith(github.ref, 'refs/tags/')
6567
with:
66-
files: dist/
68+
files: dist/${{ env.file_name }}
6769

0 commit comments

Comments
 (0)