Skip to content

Commit

Permalink
Build .NET Core and UAP
Browse files Browse the repository at this point in the history
  • Loading branch information
wherewhere committed Dec 26, 2023
1 parent 855bca8 commit 7a5c58a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
name: pack-and-publish
needs: build-and-test
runs-on: windows-latest
env:
Solution_Name: AdvancedSharpAdbClient/AdvancedSharpAdbClient.csproj

steps:
- name: Checkout
Expand All @@ -60,11 +62,19 @@ jobs:
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1
with:
msbuild-architecture: x64

- name: Setup NuGet.exe
uses: NuGet/setup-nuget@v1

- name: Install Dependencies
run: dotnet restore -p:FullTargets=true
run: msbuild $env:Solution_Name /t:Restore /p:FullTargets=true /p:GITHUB_ACTIONS=false

- name: Pack
run: dotnet pack --no-restore --version-suffix build.${{ github.run_number }}.${{ github.run_attempt }} -o "nugets" -p:FullTargets=true
run: msbuild $env:Solution_Name /t:Pack /p:FullTargets=true /p:GITHUB_ACTIONS=false /p:Configuration=Release /p:PackageOutputPath=../nugets /p:VersionSuffix=build.${{ github.run_number }}.${{ github.run_attempt }}

- name: Publish
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
Expand Down

0 comments on commit 7a5c58a

Please sign in to comment.