Skip to content

Commit 115f9ff

Browse files
committed
fix windows
1 parent 82fa205 commit 115f9ff

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/internal-build-release-win64.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ jobs:
2525
run: dotnet build -c Release --no-restore
2626

2727
- name: Build Bundle
28-
shell: bash
28+
shell: pwsh
2929
run: |
3030
echo "Current Directory $(pwd)"
3131
# build the project
32-
dotnet publish ./src/CodeQLToolkit.Core/CodeQLToolkit.Core.csproj /p:PublishProfile=./src/CodeQLToolkit.Core/Properties/PublishProfiles/Windows-x64.pubxml
33-
cp ./src/CodeQLToolkit.Core/bin/Release/net6.0/publish/windows-x64/CodeQLToolkit.Core ./src/CodeQLToolkit.Core/bin/Release/net6.0/publish/windows-x64/qlt
32+
dotnet publish .\src\CodeQLToolkit.Core\CodeQLToolkit.Core.csproj /p:PublishProfile=.\src\CodeQLToolkit.Core\Properties\PublishProfiles\Windows-x64.pubxml
33+
Copy-Item .\src\CodeQLToolkit.Core\bin\Release\net6.0\publish\windows-x64\CodeQLToolkit.Core.exe .\src\CodeQLToolkit.Core\bin\Release\net6.0\publish\windows-x64\qlt.exe
3434
3535
# create bundle
36-
ARCHIVE="$(pwd)/qlt-windows-x64.zip"
37-
pushd ./src/CodeQLToolkit.Core/bin/Release/net6.0/publish/windows-x64
38-
zip -r $ARCHIVE .
39-
popd
36+
$ARCHIVE="$(Get-Location)/qlt-windows-x64.zip"
37+
Push-Location .\src\CodeQLToolkit.Core\bin\Release\net6.0\publish\windows-x64
38+
Compress-Archive -Path "*" -DestinationPath $ARCHIVE
39+
Pop-Location
4040
4141
- name: Upload build artifacts
4242
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)