From 4210ecbb4f3911625aca70d70a0a22c417e6ed55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A7=D0=BE=D0=B2?= =?UTF-8?q?=D0=BD=D1=8E=D0=BA?= Date: Thu, 5 Dec 2024 17:26:47 +0500 Subject: [PATCH] version in workflow --- .gitea/workflows/TelegramBotFramework.nuget.yaml | 5 +++-- TelegramBotBase/TelegramBotBase.csproj | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/TelegramBotFramework.nuget.yaml b/.gitea/workflows/TelegramBotFramework.nuget.yaml index 39303de..e4d685c 100644 --- a/.gitea/workflows/TelegramBotFramework.nuget.yaml +++ b/.gitea/workflows/TelegramBotFramework.nuget.yaml @@ -8,6 +8,7 @@ jobs: Build-TelegramBotBase: env: APP_PROJECT_NAME: TelegramBotBase + PACKAGE_VERSION: "123.0.0" strategy: matrix: os: @@ -34,7 +35,7 @@ jobs: run: dotnet build -c Release --no-restore $APP_PROJECT_NAME - name: Pack app - run: dotnet pack --no-build $APP_PROJECT_NAME + run: dotnet pack --version-suffix $PACKAGE_VERSION --no-build $APP_PROJECT_NAME - name: disconnect old source run: dotnet nuget remove source gitea @@ -44,4 +45,4 @@ jobs: run: dotnet nuget add source --name gitea https://git.kosyakmakc.ru/api/packages/kosyakmakc/nuget/index.json - name: Upload nuget package - run: dotnet nuget push --source gitea --api-key ${{ secrets.kosyakmakc_nuget_publish }} ${{ gitea.workspace }}/${{ env.APP_PROJECT_NAME }}/bin/Release/$APP_PROJECT_NAME.1.0.0.nupkg + run: dotnet nuget push --source gitea --api-key ${{ secrets.kosyakmakc_nuget_publish }} ${{ gitea.workspace }}/${{ env.APP_PROJECT_NAME }}/bin/Release/$APP_PROJECT_NAME.$PACKAGE_VERSION.nupkg diff --git a/TelegramBotBase/TelegramBotBase.csproj b/TelegramBotBase/TelegramBotBase.csproj index 87a1a12..9f2a71e 100644 --- a/TelegramBotBase/TelegramBotBase.csproj +++ b/TelegramBotBase/TelegramBotBase.csproj @@ -17,7 +17,7 @@ true true snupkg - 123.0.0 + $(VersionPrefix) portable