Skip to content

chore(main): release 1.4.0 #95

chore(main): release 1.4.0

chore(main): release 1.4.0 #95

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Restore tools
run: dotnet tool restore
- name: Run GitVersion
id: gitversion
run: |
VERSION=$(dotnet gitversion /showvariable SemVer)
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "Package version: $VERSION"
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release -p:Version=${{ steps.gitversion.outputs.version }}
- name: Test
run: dotnet test --no-build -c Release --verbosity normal
- name: Pack
run: |
dotnet pack src/MemoryLens.Mcp/MemoryLens.Mcp.csproj --no-build -c Release -p:PackageVersion=${{ steps.gitversion.outputs.version }} -o ./artifacts
- name: Push to NuGet (pre-release)
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate