Skip to content

Merge branch 'release/3.3.2' #10

Merge branch 'release/3.3.2'

Merge branch 'release/3.3.2' #10

Workflow file for this run

name: NuGet Packaging and Pushing to NuGet.org
# See https://tehgm.net/blog/nuget-github-actions/ for explanations
on:
push:
branches: [ main ]
defaults:
run:
working-directory: src
jobs:
nuget-publish:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Check path
run: echo ${{ github.workspace }}
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
source-url: https://api.nuget.org/v3/index.json
dotnet-version: 8.0.x
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_FEED_PAT}}
- name: Setup MSBuild
uses: microsoft/[email protected]
with:
# The preferred processor architecture of MSBuild. Can be either "x86" or "x64". "x64" is only available from Visual Studio version 17.0 and later.
msbuild-architecture: x64
- name: Build and restore
run: msbuild -restore -p:Configuration=Pack ${{ github.workspace }}\src\PiWeb.Volume.sln
- name: Publish
run: |
msbuild -t:pack -p:Configuration=Pack -p:Platform=x64 ${{ github.workspace }}\src\PiWeb.Volume\PiWeb.Volume.csproj
dotnet nuget push ${{ github.workspace }}\bin\Pack\*.nupkg --skip-duplicate --no-symbols true --api-key ${{secrets.NUGET_FEED_PAT}}
Remove-Item ${{ github.workspace }}\bin\Pack -Recurse