Skip to content

Commit

Permalink
Publish NuGet package
Browse files Browse the repository at this point in the history
  • Loading branch information
felixsevero committed May 15, 2024
1 parent ee25da7 commit 951ae56
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish NuGet Package

on:
push:
branches:
- main

jobs:
publish_nuget_package:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Test
run: dotnet test
- name: Pack
run: dotnet pack --output ./output
- name: Push
run: dotnet nuget push ./output/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
6 changes: 5 additions & 1 deletion Azofe.Core.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.4.33205.214
Expand All @@ -7,6 +6,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azofe.Core", "Azofe.Core\Az
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azofe.Core.Tests", "Azofe.Core.Tests\Azofe.Core.Tests.csproj", "{ABB4C381-8FE9-4F37-B28F-1D00E793EBA7}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D175C665-E5BB-4130-BAD4-1A6296D566D5}"
ProjectSection(SolutionItems) = preProject
.github\workflows\publish.yml = .github\workflows\publish.yml
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
15 changes: 14 additions & 1 deletion Azofe.Core/Azofe.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Authors>Félix Severo</Authors>
<Company>Azofe</Company>
<Copyright>Copyright Félix Severo</Copyright>
<Description>A high-quality set of building blocks to architect your backend using Hexagonal Architecture and Domain-Driven Design.</Description>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageTags>azofe;core;architect;hexagonal;architecture;ddd</PackageTags>
<Product>Azofe</Product>
<RepositoryUrl>https://github.com/felixsevero/Azofe.Core.git</RepositoryUrl>
<TargetFramework>net8.0</TargetFramework>
<Version>0.1.0</Version>
</PropertyGroup>
<ItemGroup>
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="IdGen" Version="3.0.5" />
<PackageReference Include="MediatR" Version="12.2.0" />
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Azofe.Core

A high-quality set of building blocks to architect your backend using Hexagonal Architecture and Domain-Driven Design.

0 comments on commit 951ae56

Please sign in to comment.