Skip to content

Commit

Permalink
Create release-nuget-pkg.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
swagfin authored Apr 1, 2024
1 parent c79b1e7 commit ddbf52d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release-nuget-pkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release FileDB.Core to NuGet
on:
release:
types: [published]

jobs:
publish_nuget_package:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
- name: Build
run: dotnet build FileDB.Core/FileDB.Core.csproj -c Release
- name: Test
run: dotnet test FileDB.Core/FileDB.Core.csproj -c Release --no-build
- name: Pack nugets
run: dotnet pack FileDB.Core/FileDB.Core.csproj -c Release --no-build --output .
- name: Push to NuGet
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

0 comments on commit ddbf52d

Please sign in to comment.