Skip to content

Update README.md with .NET 10, xUnit, and modern development practices #38

Update README.md with .NET 10, xUnit, and modern development practices

Update README.md with .NET 10, xUnit, and modern development practices #38

Workflow file for this run

name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
10.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --configuration Release
- name: Create the package
run: dotnet pack --configuration Release --no-restore
- name: Publish the package to NUGET
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
if: ${{ github.ref == 'refs/heads/main' }}
run: dotnet nuget push AutoNumber/bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key $NUGET_API_KEY