Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bugrakosen committed Apr 11, 2024
2 parents 03a7228 + 64cba37 commit 4860362
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Milvasoft.ExpressionBuilder Nuget Publish

on:
push:
branches: [ master ]
paths:
- 'ExpressionBuilder/**'
pull_request:
branches: [ master ]
paths:
- 'ExpressionBuilder/**'

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.ExpressionBuilder project dependencies
run: dotnet restore ExpressionBuilder/ExpressionBuilder.csproj
- name: Build Milvasoft.ExpressionBuilder project
run: dotnet build ExpressionBuilder/ExpressionBuilder.csproj --no-restore --configuration Release
- name: Pack Milvasoft.ExpressionBuilder project
run: dotnet pack ExpressionBuilder/ExpressionBuilder.csproj --no-build --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg -o .
- name: Publish Milvasoft.ExpressionBuilder 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 4860362

Please sign in to comment.