Skip to content

Commit

Permalink
Create nuget.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bugrakosen authored Sep 14, 2024
1 parent 595c399 commit 7423659
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Milvasoft.Templates Nuget Publish

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore Milvasoft.Templates project dependencies
run: dotnet restore Milvasoft.Templates.csproj
- name: Build Milvasoft.Templates project
run: dotnet build Milvasoft.Templates.csproj --no-restore --configuration Release
- name: Pack Milvasoft.Templates project
run: dotnet pack Milvasoft.Templates.csproj --no-build --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg -o .
- name: Publish package to NuGet
run: dotnet nuget push *.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source "https://api.nuget.org/v3/index.json" --skip-duplicate

0 comments on commit 7423659

Please sign in to comment.