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