使用环境变量$GITHUB_ENV
This commit is contained in:
parent
1115b201be
commit
c4d0ac2504
|
@ -19,15 +19,14 @@ jobs:
|
|||
with:
|
||||
dotnet-version: 7.0.x
|
||||
- name: Get Version
|
||||
id: ver
|
||||
run: echo ::set-output name=VERSION::$(date "+%Y.%m%d-beta%H%M")
|
||||
run: echo "VERSION=$(date '+%Y.%m%d-beta%H%M')" >> $GITHUB_ENV
|
||||
- name: Build
|
||||
run: |
|
||||
dotnet build -c Release --version-suffix ${{ steps.ver.outputs.VERSION }}
|
||||
dotnet build -c Release --version-suffix ${{ env.VERSION }}
|
||||
- name: Pack
|
||||
run: |
|
||||
dotnet pack --no-build --version-suffix ${{ steps.ver.outputs.VERSION }} -o out Stardust/Stardust.csproj
|
||||
dotnet pack --no-build --version-suffix ${{ steps.ver.outputs.VERSION }} -o out Stardust.Extensions/Stardust.Extensions.csproj
|
||||
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
|
||||
|
||||
- name: Publish
|
||||
run: |
|
||||
|
|
|
@ -16,15 +16,14 @@ jobs:
|
|||
with:
|
||||
dotnet-version: 7.0.x
|
||||
- name: Get Version
|
||||
id: ver
|
||||
run: echo ::set-output name=VERSION::$(date "+%Y.%m%d")
|
||||
run: echo "VERSION=$(date '+%Y.%m%d')" >> $GITHUB_ENV
|
||||
- name: Build
|
||||
run: |
|
||||
dotnet build -c Release --version-suffix ${{ steps.ver.outputs.VERSION }}
|
||||
dotnet build -c Release --version-suffix ${{ env.VERSION }}
|
||||
- name: Pack
|
||||
run: |
|
||||
dotnet pack --no-build --version-suffix ${{ steps.ver.outputs.VERSION }} -o out Stardust/Stardust.csproj
|
||||
dotnet pack --no-build --version-suffix ${{ steps.ver.outputs.VERSION }} -o out Stardust.Extensions/Stardust.Extensions.csproj
|
||||
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
|
||||
|
||||
- name: Publish
|
||||
run: |
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<AssemblyVersion>$(VersionPrefix).*</AssemblyVersion>
|
||||
<Deterministic>false</Deterministic>
|
||||
<!--<OutputPath>..\Bin</OutputPath>-->
|
||||
<DocumentationFile>$(OutputPath)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
|
||||
<!--<DocumentationFile>$(OutputPath)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>-->
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
|
|
Loading…
Reference in New Issue