This repository has been archived by the owner on Oct 3, 2024. It is now read-only.
Port to NET8 #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to Nuget | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build and test | |
run: | | |
dotnet restore | |
dotnet build --configuration Release --no-restore | |
dotnet test | |
- name: Publish EF6 | |
run: | | |
dotnet pack -c Release src/Unosquare.EntityFramework.Specification.EF6/Unosquare.EntityFramework.Specification.EF6.csproj -o . | |
dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate | |
rm *.nupkg | |
- name: Publish EFCore | |
run: | | |
dotnet pack -c Release src/Unosquare.EntityFramework.Specification.EFCore/Unosquare.EntityFramework.Specification.EFCore.csproj -o . | |
dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate | |
rm *.nupkg |