Skip to content

Commit

Permalink
is that better?
Browse files Browse the repository at this point in the history
  • Loading branch information
anpin committed Feb 11, 2024
1 parent 67c98fd commit 27e6cf2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ jobs:
java-version: '17'
- name: Restore dotnet tools
run: dotnet tool restore
- name: Restore dependencies
run: msbuild -t:Restore -p:Configuration=Release
- name: Build package
run:
./pack.ps1 -PackageOutputPath="$(pwd)\${{ env.RESULT_DIR }}"
run: |
$packageOutputPath = Join-Path -Path $(pwd) -ChildPath ${{ env.RESULT_DIR }}
Write-Host "packageOutputPath: $packageOutputPath"
$absolutePackageOutputPath = Convert-Path -Path $PackageOutputPath -ErrorAction Stop
Write-Host "absolutePackageOutputPath: $absolutePackageOutputPath"
msbuild -t:Restore -p:Configuration=Release
./pack.ps1 -PackageOutputPath $packageOutputPath
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
5 changes: 1 addition & 4 deletions pack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ param(
)
$ErrorActionPreference = "Stop"

$absolutePackageOutputPath = Convert-Path -Path $PackageOutputPath -ErrorAction Stop
Write-Host "Using PackageOutputPath: $absolutePackageOutputPath"

msbuild .\src\APES.UI.XF.csproj -t:Build,Pack -p:Configuration=Release -p:PackageOutputPath="$absolutePackageOutputPath"
msbuild .\src\APES.UI.XF.csproj -t:Build,Pack -p:Configuration=Release -p:PackageOutputPath="$PackageOutputPath"

0 comments on commit 27e6cf2

Please sign in to comment.