Skip to content

Commit

Permalink
fix; added nuget prep
Browse files Browse the repository at this point in the history
  • Loading branch information
antosubash committed Mar 13, 2024
1 parent c5bd473 commit 3f309ee
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore abp/
- name: Build
Expand Down Expand Up @@ -68,6 +68,12 @@ jobs:
} catch (error) {
core.setFailed(error.message);
}
- name: Build Package
if: steps.versionize.outcome == 'success'
run: dotnet pack --output nupkgs --configuration Release
# - name: Push to Nuget
# if: steps.versionize.outcome == 'success'
# run: dotnet nuget push "nupkgs/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
- name: Docker Login
if: steps.versionize.outcome == 'success'
uses: docker/login-action@v2
Expand Down
28 changes: 28 additions & 0 deletions Anto.Abp.SingleLayer.Template.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PackageType>Template</PackageType>
<Version>1.0.0</Version>
<TargetFramework>net8.0</TargetFramework>
<PackageId>Anto.Abp.SingleLayer.Template</PackageId>
<Title>Abp Single Layer Template</Title>
<Authors>Anto Subash</Authors>
<Description>Abp Single Layer Template</Description>
<PackageTags>abp;single-layer;template</PackageTags>
<IncludeContentInPack>true</IncludeContentInPack>
<IncludeBuildOutput>false</IncludeBuildOutput>
<NoDefaultExcludes>true</NoDefaultExcludes>
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/antosubash/abp-single-layer-template</PackageProjectUrl>
<RepositoryUrl>https://github.com/antosubash/abp-single-layer-template</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<Compile Remove="**\*" />
<Content Include="abp\**\*" Exclude="abp\**\bin\**;src\**\obj\**;abp\node_modules;abp\**\node_modules\**;" />
<Content Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>

</Project>
19 changes: 19 additions & 0 deletions abp/.template.config/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Anto Subash",
"classifications": [
"ABP",
"ASP.NET Core",
"C#"
],
"identity": "Anto.Abp.SingleLayer.Template",
"sourceName": "AbpTemplate",
"name": "An ABP Single Layer Template",
"description": "An ABP Single Layer Template",
"tags": {
"language": "c#",
"type": "solution"
},
"shortName": "abp-sl",
"preferNameDirectory": true
}

0 comments on commit 3f309ee

Please sign in to comment.