From 992d958e33ab425a6d4762fa7df67d45f12405e5 Mon Sep 17 00:00:00 2001 From: jx Date: Mon, 29 Jul 2024 10:22:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0nuget=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/nuget.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index d08a715..d7def64 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -1,8 +1,9 @@ name: publish to nuget on: - pull_request: - branches: ["master"] + push: + tags: + - 'v*' jobs: build: @@ -20,7 +21,7 @@ jobs: - name: Build run: dotnet build --no-restore - name: Publish AListSdkSharp - uses: tedd/publish-nuget-neo@v1 + uses: tedd/publish-nuget-neo@v1.0.2 with: PROJECT_FILE_PATH: AListSdkSharp/AListSdkSharp.csproj VERSION_REGEX: ^\s*(.*)<\/Version>\s*$