Merge pull request #6 from Leitee/develop #36
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 ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v1.9.0 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore | |
run: dotnet restore | |
- name: Build | |
run: dotnet build -c Release --no-restore | |
- name: Test | |
run: dotnet test -c Release --no-restore --no-build --verbosity normal | |
- name: Pack Abstractions | |
run: dotnet pack Codeit.Enterprise.Base.Abstractions/Codeit.Enterprise.Base.Abstractions.csproj -c Release --no-restore --no-build -o . | |
- name: Publish Abstractions | |
run: dotnet nuget push *.nupkg --skip-duplicate -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} | |
- name: Pack Base | |
run: dotnet pack Codeit.Enterprise.Base/Codeit.Enterprise.Base.csproj -c Release --no-restore --no-build -o . | |
- name: Publish Base | |
run: dotnet nuget push *.nupkg --skip-duplicate -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} |