Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
teacher-zhou committed Dec 4, 2022
1 parent e5aaeea commit b061095
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Release

on:
push:
branches: ['master']
tags:
- "*"

Expand All @@ -14,7 +13,7 @@ jobs:
- name: 迁出代码
uses: actions/checkout@v2

- name: Setup .NET 6
- name: Setup .NET Environment
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
Expand All @@ -30,13 +29,7 @@ jobs:
Version=${{steps.version.outputs.full}}
echo "The version {$Version}"
dotnet build
dotnet pack ./src/TDesignBlazor/TDesignBlazor.csproj -c release --no-build -o ./pack -p:PackageVersion=$Version
dotnet pack ./src/TDesign/TDesign.csproj -c release --no-build -o ./pack -p:PackageVersion=$Version
dotnet nuget push './pack/*.nupkg' -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate
- name: 上传工件
uses: actions/upload-artifact@v2
with:
name: package
path: publish/
retention-days: 5

0 comments on commit b061095

Please sign in to comment.