Skip to content

Commit

Permalink
调整编译发布脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Jun 20, 2024
1 parent c395eb8 commit 6686b44
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 19 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup dotNET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: |
6.0.x
7.0.x
8.x
- name: Get Version
run: echo "VERSION=$(date '+%Y.%m%d-beta%H%M')" >> $GITHUB_ENV
- name: Build
run: |
dotnet build -c Release --version-suffix ${{ env.VERSION }}
- name: Pack
run: |
dotnet pack --no-build --version-suffix ${{ env.VERSION }} -c Release -o out XCode/XCode.csproj
dotnet pack --no-build --version-suffix ${{ env.VERSION }} -c Release -o out XCodeTool/XCodeTool.csproj
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out XCode/XCode.csproj
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out XCodeTool/XCodeTool.csproj
- name: Publish
run: |
dotnet nuget push ./out/*.nupkg --skip-duplicate --source https://nuget.pkg.github.com/NewLifeX/index.json --api-key ${{ github.token }}
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup dotNET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: |
6.0.x
7.0.x
8.x
- name: Get Version
run: echo "VERSION=$(date '+%Y.%m%d')" >> $GITHUB_ENV
- name: Build
run: |
dotnet build -c Release
- name: Pack
run: |
dotnet pack --no-build -c Release -o out XCode/XCode.csproj
dotnet pack --no-build -c Release -o out XCodeTool/XCodeTool.csproj
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out XCode/XCode.csproj
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out XCodeTool/XCodeTool.csproj
- name: Publish
run: |
dotnet nuget push ./out/*.nupkg --skip-duplicate --source https://nuget.pkg.github.com/NewLifeX/index.json --api-key ${{ github.token }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup dotNET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: |
6.0.x
7.0.x
8.x
- name: Build
run: |
dotnet build -c Release
Expand Down
2 changes: 1 addition & 1 deletion XCode/XCode.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="Current">
<PropertyGroup>
<TargetFrameworks>net45;net461;netstandard2.0;netstandard2.1;net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFrameworks>net45;net461;netstandard2.0;netstandard2.1</TargetFrameworks>
<AssemblyName>XCode</AssemblyName>
<RootNamespace>XCode</RootNamespace>
<AssemblyTitle>NewLife数据中间件</AssemblyTitle>
Expand Down

0 comments on commit 6686b44

Please sign in to comment.