Skip to content

Commit

Permalink
Changing PackageId so we can release a new Nuget under Microting name…
Browse files Browse the repository at this point in the history
…space.

Adding release script.
  • Loading branch information
renemadsen authored and Toxantron committed Jul 20, 2023
1 parent aa6971a commit a3a31f3
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 5 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/dotnet-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: .NET Release

on:
push:
tags:
- 'v*.*.*'

jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET 7.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build Release
run: dotnet build Castle.Windsor.sln -c Release
- name: Castle.Windsor.Tests
run: dotnet test src/Castle.Windsor.Tests
- name: Castle.Windsor.Extensions.DependencyInjection.Tests
run: dotnet test src/Castle.Windsor.Extensions.DependencyInjection.Tests
- name: Castle.Facilities.AspNetCore.Tests
run: dotnet test src/Castle.Facilities.AspNetCore.Tests
deploy:
needs: build-ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3 | cut -d "v" -f 2)
- name: Build
run: dotnet build Castle.Windsor.sln --configuration Release
- name: Pack
run: dotnet pack Castle.Windsor.sln -c Release -o ./artifacts -p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
- name: Push generated Rebus package to GitHub registry
run: dotnet nuget push /home/runner/work/Windsor/Windsor/artifacts/Microting.Castle.Windsor.${{ steps.get_version.outputs.VERSION }}.nupkg -k ${{secrets.NUGET_SECRET_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>Castle.Facilities.AspNetCore</PackageId>
<PackageId>Microting.Castle.Facilities.AspNetCore</PackageId>
<Title>Castle Windsor ASP.NET Core facility</Title>
<Description>Castle Windsor ASP.NET Core facility lets you easily add windsor to aspnet core apps.</Description>
<PackageTags>castle, windsor, inversionOfControl, DependencyInjection, aspnet, core</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>Castle.LoggingFacility</PackageId>
<PackageId>Microting.Castle.LoggingFacility</PackageId>
<Title>Castle Windsor logging facility</Title>
<Description>Castle Windsor logging facility lets you easily inject loggers into your components. It offers integration with most popular 3rd party logging frameworks like log4net, NLog and Serilog (see Castle Core docs).</Description>
<PackageTags>castle, windsor, inversionOfControl, DependencyInjection, logging, log4net, nlog</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>Castle.Windsor.Extensions.DependencyInjection</PackageId>
<PackageId>Microting.Castle.Windsor.Extensions.DependencyInjection</PackageId>
<Title>Castle Windsor extension for .NET Extensions DependencyInjection</Title>
<Description>Allows to use Castle Windsor as a container using IServiceProvider</Description>
<PackageTags>castle, windsor, inversionOfControl, DependencyInjection, aspnet, core</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>Castle.Windsor.Extensions.Hosting</PackageId>
<PackageId>Microting.Castle.Windsor.Extensions.Hosting</PackageId>
<Title>Castle Windsor extension for .NET Extensions Hosting</Title>
<Description>Allows to use Castle Windsor as a container using IServiceProvider</Description>
<PackageTags>castle, windsor, inversionOfControl, DependencyInjection, aspnet, core</PackageTags>
Expand Down
2 changes: 1 addition & 1 deletion src/Castle.Windsor/Castle.Windsor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>Castle.Windsor</PackageId>
<PackageId>Microting.Castle.Windsor</PackageId>
<Title>Castle Windsor</Title>
<Description>Castle Windsor is best of breed, mature Inversion of Control container available for .NET.</Description>
<PackageTags>castle, windsor, inversionOfControl, DependencyInjection</PackageTags>
Expand Down

0 comments on commit a3a31f3

Please sign in to comment.