github action 支持多版本dotnet发布

This commit is contained in:
智能大石头 2024-02-19 00:08:08 +08:00
parent 6e9139366e
commit 13d3395e94
3 changed files with 12 additions and 3 deletions

View File

@ -17,7 +17,10 @@ jobs:
- name: Setup dotNET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
dotnet-version: |
6.0.x
7.0.x
8.x
- name: Get Version
run: echo "VERSION=$(date '+%Y.%m%d-beta%H%M')" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Build

View File

@ -14,7 +14,10 @@ jobs:
- name: Setup dotNET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
dotnet-version: |
6.0.x
7.0.x
8.x
- name: Build
run: |
dotnet build -c Release

View File

@ -17,7 +17,10 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
dotnet-version: |
6.0.x
7.0.x
8.x
- name: Build
run: |
dotnet build -c Release