Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Surenthiran authored Jun 20, 2024
1 parent 3f95346 commit 8da28c4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ jobs:
echo "CurrentVersion=$CurrentVersion" >> $env:GITHUB_ENV
Write-Host "Setting current version to $CurrentVersion."
- name: Run Publish script
- name: Publish Server
shell: powershell
run: |
.\Utilities\Publish.ps1 -CurrentVersion $env:CurrentVersion -RID ${{ github.event.inputs.rid }} -OutDir "$env:GITHUB_WORKSPACE\publish"
- name: Upload server build artifact
dotnet publish ./Server/ -c Release -r ${{ github.event.inputs.rid }} -o "./publish/Server"
- name: Upload Server Artifact
uses: actions/[email protected]
with:
path: ./publish/Server/
Expand All @@ -63,11 +63,11 @@ jobs:
- name: Publish Windows x64 Agent
shell: powershell
run: |
dotnet publish ./Agent/ -c Release -r win-x64 --self-contained -o "./Agent/bin/publish/"
Compress-Archive -Path "./Agent/bin/publish/*" -DestinationPath "./Agent/bin/Remotely-Windows-x64.zip" -Force
dotnet publish ./Agent/ -c Release -r win-x64 -o "./publish/WindowsAgent"
Compress-Archive -Path "./publish/WindowsAgent/*" -DestinationPath "./publish/Windows-Agent-x64.zip" -Force
- name: Upload Windows client build artifact
- name: Upload Windows Client Artifact
uses: actions/[email protected]
with:
path: ./Agent/bin/Remotely-Windows-x64.zip
path: ./publish/Windows-Agent-x64.zip
name: Windows-Agent-x64

0 comments on commit 8da28c4

Please sign in to comment.