Skip to content

Publish Minor Nuget #11

Publish Minor Nuget

Publish Minor Nuget #11

name: Publish Minor Nuget
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Bump build version
id: bump
uses: vers-one/[email protected]
with:
files: |
"source/Linq.AI/Linq.AI.csproj", "source/Linq.AI.OpenAI/Linq.AI.OpenAI.csproj"
version: bump-build
- name: Restore dependencies
run: dotnet restore source/Linq.AI.sln
- name: Build
run: dotnet build source/Linq.AI.sln -c Release --no-restore
- name: dotnet pack
run: |
dotnet pack --no-build source/Linq.AI.sln -c Release -o packages --include-symbols --property WarningLevel=0
- name: Publish NuGet and symbols
id: nuget-push
uses: edumserrano/nuget-push@v1
with:
api-key: '${{ secrets.NUGET_KEY }}'
working-directory: 'packages'
fail-if-exists: false
- name: Commit new version changes
working-directory: .
run: |
git config --global user.name "Github Action"
git config --global user.email "[email protected]"
git commit -a -m "Bumped version for published nuget artifacts"
git push