修正发布脚本

This commit is contained in:
大石头 2022-04-04 22:43:23 +08:00
parent d4035bac0f
commit 293dd888b5
2 changed files with 4 additions and 13 deletions

View File

@ -4,11 +4,12 @@ on:
push:
branches: [ master ]
paths:
- 'NewLife.Core/**'
- 'Stardust/**'
- 'Stardust.Extensions/**'
workflow_dispatch:
jobs:
build:
build-publish:
runs-on: ubuntu-latest
steps:
@ -26,11 +27,6 @@ jobs:
dotnet pack --no-restore --version-suffix $(date "+%Y.%m%d-beta%H%M") -c Release -o out Stardust/Stardust.csproj
dotnet pack --no-restore --version-suffix $(date "+%Y.%m%d-beta%H%M") -c Release -o out Stardust.Extensions/Stardust.Extensions.csproj
publish:
runs-on: ubuntu-latest
needs: build
steps:
- name: Publish
run: |
# dotnet nuget push ./out/*.nupkg --skip-duplicate --source https://nuget.pkg.github.com/NewLifeX/index.json --api-key ${{ github.token }}

View File

@ -6,7 +6,7 @@ on:
workflow_dispatch:
jobs:
build:
build-publish:
runs-on: ubuntu-latest
@ -25,11 +25,6 @@ jobs:
dotnet pack --no-restore --version-suffix $(date "+%Y.%m%d") -c Release -o out Stardust/Stardust.csproj
dotnet pack --no-restore --version-suffix $(date "+%Y.%m%d") -c Release -o out Stardust.Extensions/Stardust.Extensions.csproj
publish:
runs-on: ubuntu-latest
needs: build
steps:
- name: Publish
run: |
# dotnet nuget push ./out/*.nupkg --skip-duplicate --source https://nuget.pkg.github.com/NewLifeX/index.json --api-key ${{ github.token }}