diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index de76236..05fc8b4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: diff --git a/pack.ps1 b/pack.ps1 index 8efbc71..7611ba6 100644 --- a/pack.ps1 +++ b/pack.ps1 @@ -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"