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 759788b commit 839c22a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

build-windows:

runs-on: self-host
runs-on: self-hosted

env:
Solution_Name: Remotely.sln
Expand Down Expand Up @@ -49,12 +49,12 @@ jobs:
echo "CurrentVersion=$CurrentVersion" >> $env:GITHUB_ENV
Write-Host "Setting current version to $CurrentVersion."
- name: Publish Server
- name: Run Publish script
shell: powershell
run: |
dotnet publish ./Server/ -c Release -r ${{ github.event.inputs.rid }} -o "./publish/Server"
- name: Upload Server Artifact
.\Utilities\Publish.ps1 -CurrentVersion $env:CurrentVersion -RID ${{ github.event.inputs.rid }} -OutDir "$env:GITHUB_WORKSPACE\publish"
- name: Upload server build artifact
uses: actions/upload-artifact@v3.1.2
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 -o "./publish/WindowsAgent"
Compress-Archive -Path "./publish/WindowsAgent/*" -DestinationPath "./publish/Windows-Agent-x64.zip" -Force
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
- name: Upload Windows Client Artifact
- name: Upload Windows client build artifact
uses: actions/upload-artifact@v3.1.2
with:
path: ./publish/Windows-Agent-x64.zip
path: ./Agent/bin/Remotely-Windows-x64.zip
name: Windows-Agent-x64

0 comments on commit 839c22a

Please sign in to comment.