This commit is contained in:
智能大石头 2023-03-15 00:20:33 +08:00
parent 7b22eb0f92
commit a216b8fe72
2 changed files with 8 additions and 8 deletions

View File

@ -25,10 +25,10 @@ jobs:
dotnet build -c Release --version-suffix ${{ env.VERSION }}
- name: Pack
run: |
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
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: |
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://api.nuget.org/v3/index.json --api-key ${{ secrets.nugetKey }}
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://api.nuget.org/v3/index.json --api-key ${{ secrets.nugetKey }}

View File

@ -20,10 +20,10 @@ jobs:
dotnet build -c Release
- name: Pack
run: |
dotnet pack --no-build -o out Stardust/Stardust.csproj
dotnet pack --no-build -o out Stardust.Extensions/Stardust.Extensions.csproj
dotnet pack --no-build -o out Stardust\Stardust.csproj
dotnet pack --no-build -o out Stardust.Extensions\Stardust.Extensions.csproj
- name: Publish
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://api.nuget.org/v3/index.json --api-key ${{ secrets.nugetKey }}
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://api.nuget.org/v3/index.json --api-key ${{ secrets.nugetKey }}