Skip to content

Feat: Update to dotnet8 and update packages #20

Feat: Update to dotnet8 and update packages

Feat: Update to dotnet8 and update packages #20

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@v2
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Running Azurite
run: docker run -d -p 10000:10000 -p 10001:10001 mcr.microsoft.com/azure-storage/azurite
- name: Test
run: dotnet test --no-restore
- name: Create the package
run: dotnet pack --configuration Release
- name: Publish the package to NUGET
env: # Set the secret as an input
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