简化程序集版本,避免不一致
This commit is contained in:
parent
af3304b0d4
commit
40b83e4c0f
|
@ -15,15 +15,13 @@ jobs:
|
|||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: 7.0.x
|
||||
- name: Get Version
|
||||
run: echo "VERSION=$(date '+%Y.%m%d')" >> $GITHUB_ENV
|
||||
- name: Build
|
||||
run: |
|
||||
dotnet build -c Release --version-suffix ${{ env.VERSION }}
|
||||
dotnet build -c Release
|
||||
- name: Pack
|
||||
run: |
|
||||
dotnet pack --no-build --version-suffix ${{ env.VERSION }} -o out Stardust/Stardust.csproj
|
||||
dotnet pack --no-build --version-suffix ${{ env.VERSION }} -o out Stardust.Extensions/Stardust.Extensions.csproj
|
||||
dotnet pack --no-build -o out Stardust/Stardust.csproj
|
||||
dotnet pack --no-build -o out Stardust.Extensions/Stardust.Extensions.csproj
|
||||
|
||||
- name: Publish
|
||||
run: |
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
<VersionSuffix>$([System.DateTime]::Now.ToString(`yyyy.MMdd`))</VersionSuffix>
|
||||
<Version>$(VersionPrefix).$(VersionSuffix)</Version>
|
||||
<FileVersion>$(Version)</FileVersion>
|
||||
<AssemblyVersion>$(VersionPrefix).*</AssemblyVersion>
|
||||
<Deterministic>false</Deterministic>
|
||||
<AssemblyVersion>$(VersionPrefix).$([System.DateTime]::Now.ToString(`yyyy.MMdd`))</AssemblyVersion>
|
||||
<OutputPath>..\Bin</OutputPath>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
|
|
Loading…
Reference in New Issue