diff --git a/.gitea/workflows/publish-nugets.yaml b/.gitea/workflows/publish-nugets.yaml new file mode 100644 index 0000000..da1bc99 --- /dev/null +++ b/.gitea/workflows/publish-nugets.yaml @@ -0,0 +1,38 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: Publish NuGets + +on: + release: + types: + - published + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Extract Release Version + id: extract_version + run: echo "RELEASE_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV + + - name: Debug Release Version + run: echo "RELEASE_VERSION=${{ env.RELEASE_VERSION }}" + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 9.x + + - name: Restore dependencies + run: dotnet restore + + - name: Build and Pack NuGet Package + run: dotnet pack -c Release -o ./artifacts -p:Version=${{ env.RELEASE_VERSION }} + + - name: Publish to NuGet.org + run: | + dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} \ No newline at end of file diff --git a/CM.Authentication.Abstractions/CM.Authentication.Abstractions.csproj b/CM.Authentication.Abstractions/CM.Authentication.Abstractions.csproj index e75400a..d5db3ec 100644 --- a/CM.Authentication.Abstractions/CM.Authentication.Abstractions.csproj +++ b/CM.Authentication.Abstractions/CM.Authentication.Abstractions.csproj @@ -5,6 +5,27 @@ enable enable true + + Cakemail.Authentication.Abstractions + Mathias Beaulieu-Duncan + default + Open Harbor + icon.png + readme.md + https://git.openharbor.io/Open-Harbor/dotnet-cakemail-sdk + git + true + MIT + + portable + true + true + true + snupkg + + + + diff --git a/CM.Authentication/CM.Authentication.csproj b/CM.Authentication/CM.Authentication.csproj index 4b66efb..5f696ff 100644 --- a/CM.Authentication/CM.Authentication.csproj +++ b/CM.Authentication/CM.Authentication.csproj @@ -6,15 +6,36 @@ enable true true + + Cakemail.Authentication + Mathias Beaulieu-Duncan + default + Open Harbor + icon.png + readme.md + https://git.openharbor.io/Open-Harbor/dotnet-cakemail-sdk + git + true + MIT + + portable + true + true + true + snupkg - - + + + + + + diff --git a/CM.Sdk/CM.Sdk.csproj b/CM.Sdk/CM.Sdk.csproj index 393bb96..c959fc8 100644 --- a/CM.Sdk/CM.Sdk.csproj +++ b/CM.Sdk/CM.Sdk.csproj @@ -5,10 +5,27 @@ enable enable true + + Cakemail.Sdk + Mathias Beaulieu-Duncan + default + Open Harbor + icon.png + readme.md + https://git.openharbor.io/Open-Harbor/dotnet-cakemail-sdk + git + true + MIT + + portable + true + true + true + snupkg - + @@ -16,4 +33,8 @@ + + + + diff --git a/CM.Shared/CM.Shared.csproj b/CM.Shared/CM.Shared.csproj index e75400a..102dce9 100644 --- a/CM.Shared/CM.Shared.csproj +++ b/CM.Shared/CM.Shared.csproj @@ -5,6 +5,27 @@ enable enable true + + Cakemail.Sdk.Shared + Mathias Beaulieu-Duncan + default + Open Harbor + icon.png + readme.md + https://git.openharbor.io/Open-Harbor/dotnet-cakemail-sdk + git + true + MIT + + portable + true + true + true + snupkg + + + + diff --git a/CM.Tests/CM.Tests.csproj b/CM.Tests/CM.Tests.csproj index c6dc3f5..8b2a367 100644 --- a/CM.Tests/CM.Tests.csproj +++ b/CM.Tests/CM.Tests.csproj @@ -13,11 +13,11 @@ - - - - - + + + + + diff --git a/CM.TransactionalEmail/CM.TransactionalEmail.csproj b/CM.TransactionalEmail/CM.TransactionalEmail.csproj index 0f4e599..36ba703 100644 --- a/CM.TransactionalEmail/CM.TransactionalEmail.csproj +++ b/CM.TransactionalEmail/CM.TransactionalEmail.csproj @@ -5,6 +5,23 @@ enable enable true + + Cakemail.TransactionalEmail + Mathias Beaulieu-Duncan + default + Open Harbor + icon.png + readme.md + https://git.openharbor.io/Open-Harbor/dotnet-cakemail-sdk + git + true + MIT + + portable + true + true + true + snupkg @@ -13,7 +30,11 @@ - + + + + + diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..a8f02f0 Binary files /dev/null and b/icon.png differ