Skip to content

Commit de3820e

Browse files
authored
Package updates (#15)
* Updated action versions * Added new icon and package details
1 parent aeb5a07 commit de3820e

File tree

6 files changed

+46
-11
lines changed

6 files changed

+46
-11
lines changed

.github/workflows/developrelease.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,34 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- name: Fetch all history for all tags and branches
1515
run: git fetch --unshallow || true
16+
1617
- name: Install GitVersion
17-
uses: gittools/actions/gitversion/[email protected].4
18+
uses: gittools/actions/gitversion/[email protected].9
1819
with:
19-
versionSpec: '5.3.x'
20+
versionSpec: '5.x'
21+
2022
- name: Use GitVersion
2123
id: gitversion # step id used as reference for output values
22-
uses: gittools/actions/gitversion/[email protected]
24+
uses: gittools/actions/gitversion/[email protected]
25+
2326
- run: |
2427
echo "NuGetVersion: ${{ steps.gitversion.outputs.NuGetVersionV2 }}"
28+
2529
- uses: actions/checkout@v2
2630
- name: Setup .NET Core
2731
uses: actions/setup-dotnet@v1
2832
with:
2933
dotnet-version: 3.1.301
34+
3035
- name: Install dependencies
3136
run: dotnet restore ./src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj
37+
3238
- name: Build
3339
run: dotnet build ./src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj --configuration Release --no-restore
40+
3441
- name: Test
3542
run: dotnet test ./src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj --no-restore --verbosity normal
43+
3644
- name: Create Release
3745
id: create_release
3846
uses: actions/create-release@v1

.github/workflows/main.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build, Test & Release to Nuget from master branch
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ main ]
66

77
jobs:
88
build:
@@ -13,26 +13,34 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- name: Fetch all history for all tags and branches
1515
run: git fetch --unshallow || true
16+
1617
- name: Install GitVersion
17-
uses: gittools/actions/gitversion/[email protected].4
18+
uses: gittools/actions/gitversion/[email protected].9
1819
with:
19-
versionSpec: '5.3.x'
20+
versionSpec: '5.x'
21+
2022
- name: Use GitVersion
2123
id: gitversion # step id used as reference for output values
22-
uses: gittools/actions/gitversion/[email protected]
24+
uses: gittools/actions/gitversion/[email protected]
25+
2326
- run: |
2427
echo "NuGetVersion: ${{ steps.gitversion.outputs.nuGetVersion }}"
2528
echo "NuGetPreReleaseTagV2: ${{ steps.gitversion.outputs.CommitsSinceVersionSourcePadded }}"
29+
2630
- name: Setup .NET Core
2731
uses: actions/setup-dotnet@v1
2832
with:
2933
dotnet-version: 3.1.301
34+
3035
- name: Install dependencies
3136
run: dotnet restore ./src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj
37+
3238
- name: Build
3339
run: dotnet build ./src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj --configuration Release --no-restore
40+
3441
- name: Test
3542
run: dotnet test ./src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj --no-restore --verbosity normal
43+
3644
- name: Publish NuGet
3745
uses: brandedoutcast/[email protected]
3846
with:

.github/workflows/prbuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build & Test
22

33
on:
44
pull_request:
5-
branches: [ master ]
5+
branches: [ main, develop ]
66

77
jobs:
88
build:

icon-logo.png

29 KB
Loading

src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,31 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6+
</PropertyGroup>
7+
<PropertyGroup>
8+
<!-- For local/debug builds -->
9+
<VersionSuffix Condition=" '$(Configuration)' == 'Debug' ">debug</VersionSuffix>
10+
<!-- This is using variables that are specific to Azure Dev Ops Pipelines -->
11+
<VersionSuffix Condition=" '$(Build_SourceBranch)' == 'refs/heads/develop' ">beta.$(Build_BuildID)</VersionSuffix>
12+
<PackageId>AzureFunctions.SqlBinding</PackageId>
513
<Authors>Jan de Vries</Authors>
14+
<Company />
615
<Description>A custom binding for MS SQL Server which can be used in an Azure Function project.</Description>
716
<PackageProjectUrl>https://github.com/Jandev/azurefunctions-sqlbinding</PackageProjectUrl>
817
<RepositoryUrl>https://github.com/Jandev/azurefunctions-sqlbinding</RepositoryUrl>
918
<RepositoryType>GitHub</RepositoryType>
10-
<PackageTags>AzureFunctions Bindings SQL</PackageTags>
19+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
20+
<PackageTags>Azure Functions, Binding, SQL, C#</PackageTags>
1121
<PackageReleaseNotes>- The initial version of a SQL Server input binding for usage in Azure Functions.
1222
- Package added with logo
23+
- Added support for Managed Service Identities via the `ISqlBindingTokenProvider`
1324
</PackageReleaseNotes>
14-
<PackageIcon>icon.png</PackageIcon>
25+
<PackageIcon>icon-logo.png</PackageIcon>
26+
<IconUrl>https://github.com/Jandev/azurefunctions-sqlbinding/blob/main/icon-logo.png</IconUrl>
27+
<Version>1.0.0</Version>
28+
<FileVersion>1.0.0.0</FileVersion>
29+
<AssemblyVersion>1.0.0.0</AssemblyVersion>
1530
</PropertyGroup>
1631

1732
<ItemGroup>
@@ -20,7 +35,11 @@
2035
</ItemGroup>
2136

2237
<ItemGroup>
23-
<None Include="icon.png">
38+
<None Include="..\..\icon-logo.png">
39+
<Pack>True</Pack>
40+
<PackagePath></PackagePath>
41+
</None>
42+
<None Include="..\..\LICENSE">
2443
<Pack>True</Pack>
2544
<PackagePath></PackagePath>
2645
</None>
-15.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)