Skip to content

Commit 5a7f873

Browse files
committed
build:(release): First initial release
1 parent 9b9b7b7 commit 5a7f873

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Nuget Publish
2+
3+
on:
4+
rekease:
5+
types: [ published ]
6+
paths:
7+
- "**"
8+
9+
jobs:
10+
11+
version:
12+
name: Nuget Publish
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v3
20+
with:
21+
dotnet-version: 8.0.x
22+
- name: Restore dependencies
23+
run: dotnet restore
24+
- name: Build
25+
run: dotnet build --no-restore
26+
- name: Build Package
27+
run: dotnet pack --output nupkgs --configuration Release -p PackageVersion=1.0.${{ github.run_number }}
28+
- name: Push to Nuget
29+
run: dotnet nuget push "nupkgs/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ logs
1717
.DS_Store
1818
.fleet
1919
.idea
20+
bin
21+
obj
2022

2123
# Local env files
2224
.env

Sajan.Abp.Vue.Template.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<PackageType>Template</PackageType>
5-
<Version>1.0.0</Version>
5+
<Version>1.0.1</Version>
66
<TargetFramework>net8.0</TargetFramework>
77
<PackageId>Sajan.Abp.Vue.Template</PackageId>
88
<Title>Abp Vue Template</Title>
@@ -20,8 +20,7 @@
2020
</PropertyGroup>
2121

2222
<ItemGroup>
23-
<Compile Remove="**\*" />
24-
<Content Include="\**\*" Exclude="\**\bin\**;\**\obj\**;\node_modules;\**\node_modules\**;\.nuxt\**;\.output\**;" />
23+
<Content Include=".\**\*" Exclude="**\bin\**;**\obj\**;node_modules;**\node_modules\**;" />
2524
<Content Include="README.md" Pack="true" PackagePath="\" />
2625
</ItemGroup>
2726

0 commit comments

Comments
 (0)