Skip to content

Commit

Permalink
adding nuget workflows for Couchbase and SqlServer modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mgroves committed Dec 12, 2023
1 parent fb9d911 commit 285af76
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/cmsprinkle_couchbase_nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish CMSprinkle NuGet Package

on:
workflow_dispatch:

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore CMSprinkle.Couchbase/CMSprinkle.Couchbase.csproj

- name: Build
run: dotnet build --no-restore -c Release -v d CMSprinkle.Couchbase/CMSprinkle.Couchbase.csproj

- name: Pack
run: dotnet pack --no-build -c Release -v d --output nupkgs CMSprinkle.Couchbase/CMSprinkle.Couchbase.csproj

- name: Publish
run: dotnet nuget push nupkgs/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
27 changes: 27 additions & 0 deletions .github/workflows/cmsprinkle_sqlserver_nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish CMSprinkle NuGet Package

on:
workflow_dispatch:

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore CMSprinkle.SqlServer/CMSprinkle.SqlServer.csproj

- name: Build
run: dotnet build --no-restore -c Release -v d CMSprinkle.SqlServer/CMSprinkle.SqlServer.csproj

- name: Pack
run: dotnet pack --no-build -c Release -v d --output nupkgs CMSprinkle.SqlServer/CMSprinkle.SqlServer.csproj

- name: Publish
run: dotnet nuget push nupkgs/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
9 changes: 9 additions & 0 deletions CMSprinkle.Couchbase/CMSprinkle.Couchbase.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Title>CMSprinkle.Couchbase</Title>
<Version>0.9.0</Version>
<Description>CMSprinkle is a micro-CMS (Content Management System) designed for quick integration with ASP.NET Core applications. It allows developers to easily incorporate managed content into ASP.NET MVC Razor pages, perfect for applications requiring a _sprinkle_ of dynamic content management. This module is to use Couchbase as the data store for CMSprinkle.</Description>
<Copyright>Matthew D. Groves 2023-present</Copyright>
<Authors>Matthew D. Groves</Authors>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryType>https://github.com/mgroves/CMSprinkle</RepositoryType>
<PackageTags>CMS;content</PackageTags>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 9 additions & 0 deletions CMSprinkle.SqlServer/CMSprinkle.SqlServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Title>CMSprinkle.SqlServer</Title>
<Version>0.9.0</Version>
<Description>CMSprinkle is a micro-CMS (Content Management System) designed for quick integration with ASP.NET Core applications. It allows developers to easily incorporate managed content into ASP.NET MVC Razor pages, perfect for applications requiring a _sprinkle_ of dynamic content management. This module is to use SQL Server as the data store for CMSprinkle.</Description>
<Copyright>Matthew D. Groves 2023-present</Copyright>
<Authors>Matthew D. Groves</Authors>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryType>https://github.com/mgroves/CMSprinkle</RepositoryType>
<PackageTags>CMS;content</PackageTags>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 285af76

Please sign in to comment.