pass version to dotnet on all steps
All checks were successful
build nuget workflow for TelegramBotBase project / Build-TelegramBotBase (x64, linux) (push) Successful in 37s

This commit is contained in:
Максим Човнюк 2024-12-05 17:44:24 +05:00
parent a81d299010
commit 0931147f5a

View File

@ -29,13 +29,13 @@ jobs:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore $APP_PROJECT_NAME
run: dotnet restore $APP_PROJECT_NAME /p:Version=$PACKAGE_VERSION
- name: Build app
run: dotnet build -c Release --version-suffix $PACKAGE_VERSION --no-restore $APP_PROJECT_NAME
run: dotnet build -c Release --version-suffix $PACKAGE_VERSION --no-restore $APP_PROJECT_NAME /p:Version=$PACKAGE_VERSION
- name: Pack app
run: dotnet pack --no-build $APP_PROJECT_NAME
run: dotnet pack --no-build $APP_PROJECT_NAME /p:Version=$PACKAGE_VERSION
- name: disconnect old source
run: dotnet nuget remove source gitea