自动发布
This commit is contained in:
parent
ae832752f7
commit
f9bb85cc12
|
@ -0,0 +1,30 @@
|
|||
name: publish-beta
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build-publish:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
include-prerelease: true
|
||||
- name: Restore
|
||||
run: |
|
||||
dotnet restore Stardust/Stardust.csproj
|
||||
dotnet restore Stardust.Extensions/Stardust.Extensions.csproj
|
||||
- name: Build
|
||||
run: |
|
||||
dotnet pack --no-restore --version-suffix $(date "+%Y.%m%d-beta%H%M") -o out Stardust/Stardust.csproj
|
||||
dotnet pack --no-restore --version-suffix $(date "+%Y.%m%d-beta%H%M") -o out Stardust.Extensions/Stardust.Extensions.csproj
|
||||
- name: Publish
|
||||
run: |
|
||||
dotnet nuget push ./out/*.nupkg --skip-duplicate --source https://nuget.pkg.github.com/NewLifeX/index.json --api-key ${{ github.token }}
|
||||
dotnet nuget push ./out/*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.nugetKey }}
|
|
@ -0,0 +1,30 @@
|
|||
name: publish
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: [ v* ]
|
||||
|
||||
jobs:
|
||||
build-publish:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
include-prerelease: true
|
||||
- name: Restore
|
||||
run: |
|
||||
dotnet restore Stardust/Stardust.csproj
|
||||
dotnet restore Stardust.Extensions/Stardust.Extensions.csproj
|
||||
- name: Build
|
||||
run: |
|
||||
dotnet pack --no-restore --version-suffix $(date "+%Y.%m%d") -o out Stardust/Stardust.csproj
|
||||
dotnet pack --no-restore --version-suffix $(date "+%Y.%m%d") -o out Stardust.Extensions/Stardust.Extensions.csproj
|
||||
- name: Publish
|
||||
run: |
|
||||
dotnet nuget push ./out/*.nupkg --skip-duplicate --source https://nuget.pkg.github.com/NewLifeX/index.json --api-key ${{ github.token }}
|
||||
dotnet nuget push ./out/*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.nugetKey }}
|
14
Readme.MD
14
Readme.MD
|
@ -1,4 +1,16 @@
|
|||
#星尘
|
||||
# NewLife.Stardust - 星尘分布式平台
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
#星尘
|
||||
Stardust 星尘,轻量级分布式服务框架!
|
||||
设计理念: 简单,易于维护扩展!
|
||||
配置中心、集群管理、远程自动发布、服务治理。服务自动注册和发现,负载均衡,动态伸缩,故障转移,性能监控。
|
||||
|
|
|
@ -7,12 +7,15 @@
|
|||
<Description>星尘,分布式服务框架。节点管理,监控中心,配置中心,发布中心,注册中心</Description>
|
||||
<Company>新生命开发团队</Company>
|
||||
<Copyright>©2002-2022 NewLife</Copyright>
|
||||
<Version>2.0.2022.0309</Version>
|
||||
<FileVersion>2.0.2022.0309</FileVersion>
|
||||
<AssemblyVersion>2.0.*</AssemblyVersion>
|
||||
<VersionPrefix>2.0</VersionPrefix>
|
||||
<VersionSuffix>$([System.DateTime]::Now.ToString(`yyyy.MMdd`))</VersionSuffix>
|
||||
<Version>$(VersionPrefix).$(VersionSuffix)</Version>
|
||||
<FileVersion>$(Version)</FileVersion>
|
||||
<AssemblyVersion>$(VersionPrefix).*</AssemblyVersion>
|
||||
<Deterministic>false</Deterministic>
|
||||
<OutputPath>..\..\Bin</OutputPath>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
<!--<ImplicitUsings>enable</ImplicitUsings>-->
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -34,6 +37,13 @@
|
|||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="StarService.cs" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -7,9 +7,11 @@
|
|||
<Description>星尘,分布式服务框架。节点管理,监控中心,配置中心,发布中心,注册中心</Description>
|
||||
<Company>新生命开发团队</Company>
|
||||
<Copyright>©2002-2022 NewLife</Copyright>
|
||||
<Version>2.0.2022.0309</Version>
|
||||
<FileVersion>2.0.2022.0309</FileVersion>
|
||||
<AssemblyVersion>2.0.*</AssemblyVersion>
|
||||
<VersionPrefix>2.0</VersionPrefix>
|
||||
<VersionSuffix>$([System.DateTime]::Now.ToString(`yyyy.MMdd`))</VersionSuffix>
|
||||
<Version>$(VersionPrefix).$(VersionSuffix)</Version>
|
||||
<FileVersion>$(Version)</FileVersion>
|
||||
<AssemblyVersion>$(VersionPrefix).*</AssemblyVersion>
|
||||
<Deterministic>false</Deterministic>
|
||||
<OutputPath>..\..\Bin</OutputPath>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
|
@ -34,6 +36,13 @@
|
|||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="Models\TokenModel.cs" />
|
||||
<Compile Remove="Monitors\AspNetCoreDiagnosticListener.cs" />
|
||||
|
|
Loading…
Reference in New Issue