Skip to content

Commit

Permalink
Merge pull request #75 from hassanhabib/users/cjdutoit/releases-2.2.0.0
Browse files Browse the repository at this point in the history
RELEASES: v2.2.0.0
  • Loading branch information
cjdutoit authored May 22, 2023
2 parents 9dc520c + 87b5d9a commit 83bab85
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 51 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
needs:
- build
if: >-
needs.build.result == 'success' &&
needs.build.result == 'success' &&
github.event.pull_request.merged &&
github.event.pull_request.merged &&
github.event.pull_request.base.ref == 'master' &&
github.event.pull_request.base.ref == 'master' &&
startsWith(github.event.pull_request.title, 'RELEASES:') &&
startsWith(github.event.pull_request.title, 'RELEASES:') &&
contains(github.event.pull_request.labels.*.name, 'RELEASES')
steps:
Expand All @@ -75,15 +75,15 @@ jobs:
- name: Authenticate with GitHub
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_PAT_FOR_TAGGING }}
token: ${{ secrets.PAT_FOR_TAGGING }}
- name: Add Release Tag
run: |-
git tag -a "v${{ steps.extract_version.outputs.version_number }}" -m "Release - v${{ steps.extract_version.outputs.version_number }}"
git push origin --tags
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_PAT_FOR_TAGGING }}
GITHUB_TOKEN: ${{ secrets.PAT_FOR_TAGGING }}
with:
tag_name: v${{ steps.extract_version.outputs.version_number }}
release_name: Release - v${{ steps.extract_version.outputs.version_number }}
Expand Down Expand Up @@ -113,4 +113,4 @@ jobs:
- name: Pack NuGet Package
run: dotnet pack --configuration Release
- name: Push NuGet Package
run: dotnet nuget push **/bin/Release/**/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push **/bin/Release/**/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_ACCESS }}
15 changes: 8 additions & 7 deletions ADotNet.Infrastructure.Build/ADotNet.Infrastructure.Build.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\ADotNet\ADotNet.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ADotNet\ADotNet.csproj" />
</ItemGroup>

</Project>
20 changes: 14 additions & 6 deletions ADotNet/ADotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,26 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<LangVersion>11.0</LangVersion>
<Copyright>Copyright (c) Hassan Habib &amp; Shri Humrudha</Copyright>
<Copyright>Copyright (c) Hassan Habib &amp; Shri Humrudha &amp; Christo du Toit</Copyright>
<Description>ADotNet is a dot net library to help engineers develop their build and release pipelines in C# without having to use YAML or any other technology.</Description>
<Authors>Hassan Habib &amp; Shri Humrudha</Authors>
<Authors>Hassan Habib &amp; Shri Humrudha &amp; Christo du Toit</Authors>
<PackageIcon>ADotNet.png</PackageIcon>
<RepositoryUrl>https://github.com/hassanhabib/ADotNet</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>ADO YAML AzureDevOps</PackageTags>
<PackageReleaseNotes>Add Windows-Latest VM + RunTask + Environment Variables</PackageReleaseNotes>
<PackageReleaseNotes>
Adding Release Tag, GitHub Release, and NuGet Package Push Support

We are excited to announce the addition of new functionality to our software,
enabling developers to enhance their release management process.
With this update, you can now easily add release tags, create GitHub releases,
and push packages to NuGet for release builds.
Upgrade today to leverage these powerful features and improve your development workflow.
</PackageReleaseNotes>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<AssemblyVersion>2.1.1.3</AssemblyVersion>
<FileVersion>2.1.1.3</FileVersion>
<Version>2.1.1.3</Version>
<AssemblyVersion>2.2.0.0</AssemblyVersion>
<FileVersion>2.2.0.0</FileVersion>
<Version>2.2.0.0</Version>
<PackageLicenseFile>License.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<PackageProjectUrl>https://github.com/hassanhabib/ADotNet</PackageProjectUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ namespace ADotNet.Models.Pipelines.GithubPipelines.DotNets.Tasks
public class NugetPushTask : GithubTask
{
[YamlMember(Order = 1)]
public string Run = "dotnet nuget push **/bin/Release/**/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}";
public string Run = "dotnet nuget push **/bin/Release/**/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_ACCESS }}";
}
}
15 changes: 8 additions & 7 deletions AdoNet.Tests.Console/ADotNet.Tests.Console.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\ADotNet\ADotNet.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ADotNet\ADotNet.csproj" />
</ItemGroup>

</Project>
45 changes: 22 additions & 23 deletions AdoNet.Tests.Unit/ADotNet.Tests.Unit.csproj
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.5.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0-preview-20220131-20" />
<PackageReference Include="Moq" Version="4.17.1" />
<PackageReference Include="Tynamix.ObjectFiller" Version="1.5.7" />
<PackageReference Include="xunit" Version="2.4.2-pre.12" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.5.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0-preview-20220131-20" />
<PackageReference Include="Moq" Version="4.17.1" />
<PackageReference Include="Tynamix.ObjectFiller" Version="1.5.7" />
<PackageReference Include="xunit" Version="2.4.2-pre.12" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\ADotNet\ADotNet.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ADotNet\ADotNet.csproj" />
</ItemGroup>

</Project>

0 comments on commit 83bab85

Please sign in to comment.