diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 48507f7..0101376 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -90,7 +90,8 @@ jobs: run: | FILE=$(find ./Console/output -type f -name 'Console*') if [ -f "$FILE" ]; then - mv "$FILE" "./Console/output/Console-${{ matrix.rid }}}" + EXTENSION="${FILE##*.}" # Extract the file extension + mv "$FILE" "./Console/output/Console-${{ matrix.rid }}.$EXTENSION" # Rename while preserving extension fi - name: Upload Artifact @@ -104,6 +105,6 @@ jobs: uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: - files: ./Console/output/Console* + files: ./Console/output