version in workflow
Some checks failed
build nuget workflow for TelegramBotBase project / Build-TelegramBotBase (x64, linux) (push) Failing after 35s

This commit is contained in:
Максим Човнюк 2024-12-05 17:26:47 +05:00
parent 9dc7490015
commit 4210ecbb4f
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -17,7 +17,7 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>123.0.0</Version>
<Version>$(VersionPrefix)</Version>
<DebugType>portable</DebugType>
</PropertyGroup>