From 5ec141c8018c6695d1a5799a3e9c52a555e5331f Mon Sep 17 00:00:00 2001 From: baez90 Date: Tue, 10 Mar 2020 01:05:02 +0100 Subject: [PATCH] Create dotnetcore.yml --- .github/workflows/dotnetcore.yml | 34 +++++++++++++++++++ src/tand/Tand.Core/Tand.Core.csproj | 3 ++ ...Tand.Extensions.DependencyInjection.csproj | 5 +++ 3 files changed, 42 insertions(+) create mode 100644 .github/workflows/dotnetcore.yml diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml new file mode 100644 index 0000000..9407f63 --- /dev/null +++ b/.github/workflows/dotnetcore.yml @@ -0,0 +1,34 @@ +name: .NET Core + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1.4.0 + with: + dotnet-version: 3.1.101 + source-url: https://nuget.pkg.github.com/baez90/index.json + env: + NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Build with dotnet + run: dotnet build --configuration Release + working-directory: ./src/tand/ + - name: Pack for deploying package + run: dotnet pack --configuration Release + working-directory: ./src/tand/ + - name: Publish Core package + run: dotnet nuget push "Tand.Core/bin/Release/Tand.Core.0.0.1.nupkg" + working-directory: ./src/tand/ + - name: Publish DI extensions package + run: dotnet nuget push "Tand.Extensions.DependencyInjection/bin/Release/Tand.Extensions.DependencyInjection.0.0.1.nupkg" + working-directory: ./src/tand/ diff --git a/src/tand/Tand.Core/Tand.Core.csproj b/src/tand/Tand.Core/Tand.Core.csproj index 5505550..f63a73e 100644 --- a/src/tand/Tand.Core/Tand.Core.csproj +++ b/src/tand/Tand.Core/Tand.Core.csproj @@ -1,7 +1,10 @@ + Tand.Core + https://github.com/baez90/tand netstandard2.1 + 0.0.1 8 enable diff --git a/src/tand/Tand.Extensions.DependencyInjection/Tand.Extensions.DependencyInjection.csproj b/src/tand/Tand.Extensions.DependencyInjection/Tand.Extensions.DependencyInjection.csproj index 23d7076..1eeb46c 100644 --- a/src/tand/Tand.Extensions.DependencyInjection/Tand.Extensions.DependencyInjection.csproj +++ b/src/tand/Tand.Extensions.DependencyInjection/Tand.Extensions.DependencyInjection.csproj @@ -1,7 +1,12 @@ + Tand.Extensions.DependencyInjection netstandard2.1 + 0.0.1 + https://github.com/baez90/tand + 8 + enable