Skip to content

Commit 5390206

Browse files
committed
Use GitHub workflow (#14)
* Remove deployment files * Add unit test * add publish file * Use latest .NET core version * Move publish yml to correct folder * Rename file to match the project it will deploy * Uncomment nuget key and nuget source * Avoid using nuget reference * Remove travis file * Remove information related to travis and AppVeyor
1 parent 3d77c82 commit 5390206

12 files changed

Lines changed: 70 additions & 262 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: publish to nuget
2+
on:
3+
push:
4+
branches:
5+
- master # Default release branch
6+
jobs:
7+
publish:
8+
name: build, pack & publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
# - name: Setup dotnet
14+
# uses: actions/setup-dotnet@v1
15+
# with:
16+
# dotnet-version: 3.1.200
17+
18+
# Publish
19+
- name: publish on version change
20+
id: publish_nuget
21+
uses: rohith/publish-nuget@v2
22+
with:
23+
# Filepath of the project to be packaged, relative to root of repository
24+
PROJECT_FILE_PATH: ./src/Sharpy/Sharpy.csproj
25+
# NuGet package id, used for version detection & defaults to project name
26+
PACKAGE_NAME: Sharpy
27+
# Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
28+
# VERSION_FILE_PATH: Directory.Build.props
29+
# Regex pattern to extract version info in a capturing group
30+
# VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
31+
# Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
32+
# VERSION_STATIC: 1.0.0
33+
# Flag to toggle git tagging, enabled by default
34+
# TAG_COMMIT: true
35+
# Format of the git tag, [*] gets replaced with actual version
36+
# TAG_FORMAT: v*
37+
# API key to authenticate with NuGet server
38+
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
39+
# NuGet server uri hosting the packages, defaults to https://api.nuget.org
40+
NUGET_SOURCE: https://api.nuget.org
41+
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
42+
# INCLUDE_SYMBOLS: false

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
name: Test
3+
4+
on: [push]
5+
6+
jobs:
7+
build:
8+
name: Test project
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Setup .NET Core
14+
uses: actions/setup-dotnet@v1
15+
with:
16+
dotnet-version: 3.1.100
17+
- name: Build
18+
run: dotnet build --configuration Release
19+
- name: Test
20+
run: dotnet test --no-build --configuration Release

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# Sharpy
22

3-
4-
| CI | Development | Master |
5-
|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
6-
| AppVeyor | [![Build status](https://ci.appveyor.com/api/projects/status/7xxovtd60q5gl3ln/branch/development?svg=true)](https://ci.appveyor.com/project/inputfalken/sharpy/branch/development) | [![Build status](https://ci.appveyor.com/api/projects/status/7xxovtd60q5gl3ln/branch/master?svg=true)](https://ci.appveyor.com/project/inputfalken/sharpy/branch/master) |
7-
| Travis | [![Build Status](https://travis-ci.org/inputfalken/Sharpy.svg?branch=development)](https://travis-ci.org/inputfalken/Sharpy) | [![Build Status](https://travis-ci.org/inputfalken/Sharpy.svg?branch=master)](https://travis-ci.org/inputfalken/Sharpy) |
8-
93
A C# Class library for generating fake data with fluent syntax using LINQ convention.
104

115
For information about installing and using this library, please visit the [API-Documentation](https://inputfalken.github.io/Sharpy/) page.

appveyor.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

deployment.ps1

Lines changed: 0 additions & 159 deletions
This file was deleted.

src/Sharpy/Sharpy.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
<Description>A library used for generating fake data.
77

88
For info please visit project page.</Description>
9-
<VersionPrefix>3.1.5</VersionPrefix>
109
<PackageProjectUrl>https://github.com/inputfalken/Sharpy/tree/master</PackageProjectUrl>
10+
<Version>4.0.0</Version>
1111
<PackageLicenseUrl>https://raw.githubusercontent.com/inputfalken/Sharpy/master/License.txt</PackageLicenseUrl>
12-
<FileVersion>3.1.4.0</FileVersion>
1312
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
1413
<RepositoryUrl>https://github.com/inputfalken/Sharpy/tree/master</RepositoryUrl>
1514
<RepositoryType>git</RepositoryType>
@@ -24,10 +23,10 @@
2423
<DefineConstants>RELEASE;NETSTANDARD2_0</DefineConstants>
2524
</PropertyGroup>
2625
<ItemGroup>
27-
<PackageReference Include="Sharpy.Core" Version="0.3.1" />
28-
<PackageReference Include="Sharpy.Builder" Version="0.0.3" />
26+
<Folder Include="Properties\" />
2927
</ItemGroup>
3028
<ItemGroup>
31-
<Folder Include="Properties\" />
29+
<ProjectReference Include="..\Sharpy.Builder\Sharpy.Builder.csproj" />
30+
<ProjectReference Include="..\Sharpy.Core\Sharpy.Core.csproj" />
3231
</ItemGroup>
3332
</Project>

tests/Sharpy.Builder.Tests/Sharpy.Builder.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.2</TargetFramework>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

tests/Sharpy.Core.Tests/Sharpy.Core.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.2</TargetFramework>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

tests/Sharpy.ReactiveBuilder.Tests/Sharpy.ReactiveBuilder.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.2</TargetFramework>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

0 commit comments

Comments
 (0)