Skip to content

Bump version from 1.0.0 to 1.0.1 #7

Bump version from 1.0.0 to 1.0.1

Bump version from 1.0.0 to 1.0.1 #7

Workflow file for this run

name: Build and Publish to NuGet
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore MAES.Core.csproj
- name: Build
run: dotnet build MAES.Core.csproj --configuration Release --no-restore
- name: Create NuGet package
run: dotnet pack MAES.Core.csproj --configuration Release --output ./nupkg
- name: Publish to NuGet
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json