bump version #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PresentMonFps Library | |
on: | |
release: | |
types: [created] | |
push: | |
branches: | |
- v2 | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 8.0.x | |
- name: Setup Windows SDK | |
uses: GuillaumeFalourd/[email protected] | |
- name: Install dependencies | |
run: cd src && dotnet restore PresentMonFps.csproj | |
- name: Build | |
run: cd src && dotnet build PresentMonFps.csproj --configuration Release --no-restore | |
- name: Pack | |
run: cd src && dotnet pack PresentMonFps.csproj -c Release --no-build -o ../ | |
- name: Push NuGet package | |
# run: dotnet nuget push "out\*.nupkg" -k ${{secrets.NUGET_AUTH_TOKEN}} --source https://api.nuget.org/v3/index.json | |
uses: actions/upload-artifact@v3 | |
with: | |
name: nuget-packages | |
path: ./*.nupkg |