Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/developrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,34 @@ jobs:
- uses: actions/checkout@v2
- name: Fetch all history for all tags and branches
run: git fetch --unshallow || true

- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected].4
uses: gittools/actions/gitversion/[email protected].9
with:
versionSpec: '5.3.x'
versionSpec: '5.x'

- name: Use GitVersion
id: gitversion # step id used as reference for output values
uses: gittools/actions/gitversion/[email protected]
uses: gittools/actions/gitversion/[email protected]

- run: |
echo "NuGetVersion: ${{ steps.gitversion.outputs.NuGetVersionV2 }}"

- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301

- name: Install dependencies
run: dotnet restore ./src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj

- name: Build
run: dotnet build ./src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj --configuration Release --no-restore

- name: Test
run: dotnet test ./src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj --no-restore --verbosity normal

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build, Test & Release to Nuget from master branch

on:
push:
branches: [ master ]
branches: [ main ]

jobs:
build:
Expand All @@ -13,26 +13,34 @@ jobs:
- uses: actions/checkout@v2
- name: Fetch all history for all tags and branches
run: git fetch --unshallow || true

- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected].4
uses: gittools/actions/gitversion/[email protected].9
with:
versionSpec: '5.3.x'
versionSpec: '5.x'

- name: Use GitVersion
id: gitversion # step id used as reference for output values
uses: gittools/actions/gitversion/[email protected]
uses: gittools/actions/gitversion/[email protected]

- run: |
echo "NuGetVersion: ${{ steps.gitversion.outputs.nuGetVersion }}"
echo "NuGetPreReleaseTagV2: ${{ steps.gitversion.outputs.CommitsSinceVersionSourcePadded }}"

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301

- name: Install dependencies
run: dotnet restore ./src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj

- name: Build
run: dotnet build ./src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj --configuration Release --no-restore

- name: Test
run: dotnet test ./src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj --no-restore --verbosity normal

- name: Publish NuGet
uses: brandedoutcast/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build & Test

on:
pull_request:
branches: [ master ]
branches: [ main, develop ]

jobs:
build:
Expand Down
Binary file added icon-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 22 additions & 3 deletions src/AzureFunctions.SqlBinding/AzureFunctions.SqlBinding.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,31 @@

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

<ItemGroup>
Expand All @@ -20,7 +35,11 @@
</ItemGroup>

<ItemGroup>
<None Include="icon.png">
<None Include="..\..\icon-logo.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
Expand Down
Binary file removed src/AzureFunctions.SqlBinding/icon.png
Binary file not shown.