[ci/cd] AntJob.Web
This commit is contained in:
parent
c01c09f998
commit
bbf00d4740
|
@ -20,12 +20,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup dotNET
|
- name: Setup dotNET
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: |
|
dotnet-version: |
|
||||||
6.0.x
|
6.x
|
||||||
7.0.x
|
7.x
|
||||||
8.x
|
8.x
|
||||||
|
9.x
|
||||||
- name: Get Version
|
- name: Get Version
|
||||||
run: echo "VERSION=$(date '+%Y.%m%d-beta%H%M')" >> $GITHUB_ENV
|
run: echo "VERSION=$(date '+%Y.%m%d-beta%H%M')" >> $GITHUB_ENV
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
|
@ -12,12 +12,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup dotNET
|
- name: Setup dotNET
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: |
|
dotnet-version: |
|
||||||
6.0.x
|
6.x
|
||||||
7.0.x
|
7.x
|
||||||
8.x
|
8.x
|
||||||
|
9.x
|
||||||
- name: Get Version
|
- name: Get Version
|
||||||
run: echo "VERSION=$(date '+%Y.%m%d')" >> $GITHUB_ENV
|
run: echo "VERSION=$(date '+%Y.%m%d')" >> $GITHUB_ENV
|
||||||
- name: Build
|
- name: Build
|
||||||
|
@ -25,7 +26,7 @@ jobs:
|
||||||
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out AntJob/AntJob.csproj
|
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out AntJob/AntJob.csproj
|
||||||
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out AntJob.Extensions/AntJob.Extensions.csproj
|
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out AntJob.Extensions/AntJob.Extensions.csproj
|
||||||
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out AntJob.Data/AntJob.Data.csproj
|
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out AntJob.Data/AntJob.Data.csproj
|
||||||
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out AntWeb/AntWeb.csproj
|
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out AntJob.Web/AntJob.Web.csproj
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: |
|
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://nuget.pkg.github.com/NewLifeX/index.json --api-key ${{ github.token }}
|
||||||
|
|
|
@ -14,12 +14,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup dotNET
|
- name: Setup dotNET
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: |
|
dotnet-version: |
|
||||||
6.0.x
|
6.x
|
||||||
7.0.x
|
7.x
|
||||||
8.x
|
8.x
|
||||||
|
9.x
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
dotnet build -c Release
|
dotnet build -c Release
|
||||||
|
|
Loading…
Reference in New Issue