Skip to content

Commit

Permalink
Release v1 (#2)
Browse files Browse the repository at this point in the history
* Rearranging project layout and adding publish workflows

* Fixes and adding icon

* Removing azure pipelines
  • Loading branch information
hoakbuilds authored Oct 7, 2021
1 parent 615458c commit 970cb3d
Show file tree
Hide file tree
Showing 39 changed files with 82 additions and 99 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get the sources
uses: actions/checkout@v1
- name: Run the build script
uses: cake-build/cake-action@v1
with:
script-path: build.cake
target: Pack
cake-bootstrap: true
51 changes: 51 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build, Pack & Publish

on:
push:
branches:
- master # Default release branch
jobs:
publish:
name: build, pack & publish
runs-on: ubuntu-latest
steps:
- name: Get the sources
uses: actions/checkout@v2
- name: Run the build script
uses: cake-build/cake-action@v1
with:
script-path: build.cake
target: Pack
cake-bootstrap: true
- name: Publish on version change
id: publish_nuget
uses: bmresearch/publish-nuget@master
with:
PROJECT_FILE_PATH: Bonfidanet.Client/Bonfidanet.Client.csproj
PACKAGE_NAME: Bonfidanet.Client
VERSION_FILE_PATH: SharedBuildProperties.props
VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
TAG_FORMAT: v*
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true
- name: Build Changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v1
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ steps.publish_nuget.outputs.VERSION }}
release_name: ${{ steps.publish_nuget.outputs.VERSION }}
body: ${{ steps.build_changelog.outputs.changelog }}
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name: Upload release assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.ACCESS_TOKEN }}
file: Bonfidanet.Client/bin/Release/net5.0/ref/Solnet.Serum.dll
tag: ${{ steps.publish_nuget.outputs.VERSION }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
6 changes: 3 additions & 3 deletions Bonfida.Client.sln
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bonfidanet.Client", "src\Bonfidanet.Client\Bonfidanet.Client.csproj", "{155A6DD0-6109-4248-BAA3-39806987DB6B}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bonfidanet.Client", "Bonfidanet.Client\Bonfidanet.Client.csproj", "{155A6DD0-6109-4248-BAA3-39806987DB6B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bonfidanet.Examples", "src\Bonfidanet.Examples\Bonfidanet.Examples.csproj", "{445A41F0-F9DE-4E6B-9301-902927983AFE}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bonfidanet.Examples", "Bonfidanet.Examples\Bonfidanet.Examples.csproj", "{445A41F0-F9DE-4E6B-9301-902927983AFE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bonfidanet.Client.Test", "test\Bonfidanet.Client.Test\Bonfidanet.Client.Test.csproj", "{882C168E-455C-458A-91CB-F4785A3B73C4}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bonfidanet.Client.Test", "Bonfidanet.Client.Test\Bonfidanet.Client.Test.csproj", "{882C168E-455C-458A-91CB-F4785A3B73C4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

<ItemGroup>
<ProjectReference Include="..\..\src\Bonfidanet.Client\Bonfidanet.Client.csproj" />
<ProjectReference Include="..\Bonfidanet.Client\Bonfidanet.Client.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net5.0</TargetFramework>
<AssemblyName>Bonfidanet.Client</AssemblyName>
<RootNamespace>Bonfidanet.Client</RootNamespace>
<IsPackable>true</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand All @@ -14,4 +15,5 @@
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="5.0.0" />
</ItemGroup>

<Import Project="..\SharedBuildProperties.props" />
</Project>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,5 @@ public interface IClient
Task<RequestResult<OrderBook>> GetOrderBookAsync(string marketName);
/// <inheritdoc cref="GetOrderBookAsync"/>
RequestResult<OrderBook> GetOrderBook(string marketName);

}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<OutputType>Exe</OutputType>
<AssemblyName>Bonfidanet.Examples</AssemblyName>
<RootNamespace>Bonfidanet.Examples</RootNamespace>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions SharedBuildProperties.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Product>Bonfidanet</Product>
<Version>0.1.0</Version>
<Version>1.0.0</Version>
<Copyright>Copyright 2021 &#169; blockmountain</Copyright>
<Authors>Tiago Carvalho &amp; Hugo Carvalho</Authors>
<PublisherName>blockmountain</PublisherName>
Expand All @@ -12,7 +12,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIcon>icon.png</PackageIcon>
<PackageDescription>Bonfidanet is a .NET library to interface with the Bonfida API.</PackageDescription>
<PackageTags>solana;serum;sol;net5</PackageTags>
<PackageTags>solana;serum;sol;bonfida;net5</PackageTags>
<PackageReleaseNotes>https://github.com/bmresearch/Bonfidanet/releases</PackageReleaseNotes>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 0 additions & 37 deletions azure-pipelines.yml

This file was deleted.

54 changes: 0 additions & 54 deletions azure-release-pipelines.yml

This file was deleted.

4 changes: 2 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Task("Test")
ArgumentCustomization = args => args.Append($"--logger trx")
};

DotNetCoreTest("./test/Bonfidanet.Client.Test/Bonfidanet.Client.Test.csproj", testSettings, coverletSettings);
DotNetCoreTest("./Bonfidanet.Client.Test/Bonfidanet.Client.Test.csproj", testSettings, coverletSettings);
});


Expand Down Expand Up @@ -99,7 +99,7 @@ Task("Pack")
};


GetFiles("./src/*/*.csproj")
GetFiles("./*/*.csproj")
.ToList()
.ForEach(f => DotNetCorePack(f.FullPath, settings));
});
Expand Down

0 comments on commit 970cb3d

Please sign in to comment.