Skip to content

Commit

Permalink
ci: build pack for nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Jul 25, 2024
1 parent 54b5afe commit 4274689
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/library.nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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

0 comments on commit 4274689

Please sign in to comment.