File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments