From ae1cc8164b130b64ab8d98064bd9ef9b94e89a6f Mon Sep 17 00:00:00 2001 From: Craig Dean Date: Thu, 14 Oct 2021 03:36:58 +0100 Subject: [PATCH] feat: Publish Restoring github action for now. --- .github/workflows/publish.yml | 15 ++++++++------- .github/workflows/validatepullrequest.yml | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 51d24c9..be44107 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,7 +18,7 @@ jobs: uses: dotnet/nbgv@v0.4.0 with: setAllVars: true - - name: Setup .NET Core + - name: Setup .NET uses: actions/setup-dotnet@v1 with: dotnet-version: '6.0.x' @@ -29,9 +29,10 @@ jobs: run: dotnet build --configuration Release --no-restore -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true - name: Test run: dotnet test --configuration Release --no-build --verbosity normal -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true - - name: Publish Package - run: dotnet nuget push **/bin/Release/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://nuget.org --skip-duplicate - - name: Tag Release - run: git tag -a "v$env:GitBuildVersion" -m "Tag for NuGet Version $env:GitBuildVersion" - - name: Push Tag - run: git push origin "v$env:GitBuildVersion" + - name: Publish + uses: brandedoutcast/publish-nuget@v2.5.5 + with: + PROJECT_FILE_PATH: HIDDevices/HIDDevices.csproj + NUGET_KEY: ${{secrets.NUGET_API_KEY}} + INCLUDE_SYMBOLS: true + VERSION_STATIC: ${{env.NBGV_Version}} diff --git a/.github/workflows/validatepullrequest.yml b/.github/workflows/validatepullrequest.yml index 02bcfa0..a0ea065 100644 --- a/.github/workflows/validatepullrequest.yml +++ b/.github/workflows/validatepullrequest.yml @@ -18,7 +18,7 @@ jobs: uses: dotnet/nbgv@v0.4.0 with: setAllVars: true - - name: Setup .NET Core + - name: Setup .NET uses: actions/setup-dotnet@v1 with: dotnet-version: '6.0.x'