version setup on build step
Some checks failed
build nuget workflow for TelegramBotBase project / Build-TelegramBotBase (x64, linux) (push) Failing after 36s

This commit is contained in:
Максим Човнюк 2024-12-05 17:38:45 +05:00
parent 956fbd47f0
commit a81d299010

View File

@ -32,10 +32,10 @@ jobs:
run: dotnet restore $APP_PROJECT_NAME
- name: Build app
run: dotnet build -c Release --no-restore $APP_PROJECT_NAME
run: dotnet build -c Release --version-suffix $PACKAGE_VERSION --no-restore $APP_PROJECT_NAME
- name: Pack app
run: dotnet pack --version-suffix $PACKAGE_VERSION --no-build $APP_PROJECT_NAME
run: dotnet pack --no-build $APP_PROJECT_NAME
- name: disconnect old source
run: dotnet nuget remove source gitea
@ -45,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-$PACKAGE_VERSION.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