Create dotnetcore.yml

This commit is contained in:
Peter 2020-03-10 01:05:02 +01:00 committed by Peter Kurfer
parent 64484d4981
commit 5ec141c801
Signed by: prskr
GPG key ID: 2285CF1BAF6ACCAA
3 changed files with 42 additions and 0 deletions

34
.github/workflows/dotnetcore.yml vendored Normal file
View file

@ -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/

View file

@ -1,7 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>Tand.Core</PackageId>
<RepositoryUrl>https://github.com/baez90/tand</RepositoryUrl>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>0.0.1</Version>
<LangVersion>8</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>

View file

@ -1,7 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>Tand.Extensions.DependencyInjection</PackageId>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>0.0.1</Version>
<RepositoryUrl>https://github.com/baez90/tand</RepositoryUrl>
<LangVersion>8</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>