try to use new github action
Some checks failed
build nuget workflow for TelegramBotBase project / Build-TelegramBotBase (x64, linux) (push) Failing after 5s

This commit is contained in:
Максим Човнюк 2024-12-05 16:31:04 +05:00
parent 4b42644593
commit 3ab24dcd37

View File

@ -26,18 +26,56 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Publish nuget package
uses: brandedoutcast/publish-nuget@v2
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: $APP_PROJECT_NAME/$APP_PROJECT_NAME.csproj
- name: Restore dependencies
run: dotnet restore $APP_PROJECT_NAME
# Configuration to build and package
# BUILD_CONFIGURATION: Release
# Platform target to compile (default is empty/AnyCPU)
# BUILD_PLATFORM: x64
# NuGet package id, used for version detection & defaults to project name
# PACKAGE_NAME: Core
# Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
# VERSION_FILE_PATH: Directory.Build.props
# Regex pattern to extract version info in a capturing group
# VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
# Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
# VERSION_STATIC: 1.0.0
# Flag to toggle git tagging, enabled by default
# TAG_COMMIT: true
# Format of the git tag, [*] gets replaced with actual version
# TAG_FORMAT: v*
# API key to authenticate with NuGet server
NUGET_KEY: ${{ secrets.kosyakmakc_nuget_publish }}
# NuGet server uri hosting the packages, defaults to https://api.nuget.org
NUGET_SOURCE: https://git.kosyakmakc.ru
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
# INCLUDE_SYMBOLS: false
# - name: Restore dependencies
# run: dotnet restore $APP_PROJECT_NAME
- name: Build app
run: dotnet build -c Release --no-restore $APP_PROJECT_NAME
# - name: Build app
# run: dotnet build -c Release --no-restore $APP_PROJECT_NAME
- name: Pack app
run: dotnet pack --no-build $APP_PROJECT_NAME
# - name: Pack app
# run: dotnet pack --no-build $APP_PROJECT_NAME
- name: asd
run: dotnet nuget add source --name gitea https://git.kosyakmakc.ru/api/packages/kosyakmakc/nuget/index.json
# - name: asd
# 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 {source_name} --api-key ${{ secrets.kosyakmakc_nuget_publish }} ${{ gitea.workspace }}/${{ env.APP_PROJECT_NAME }}/bin/Release/$APP_PROJECT_NAME.1.0.0.nupkg
# - name: Upload nuget package
# run: dotnet nuget push --source {source_name} --api-key ${{ secrets.kosyakmakc_nuget_publish }} ${{ gitea.workspace }}/${{ env.APP_PROJECT_NAME }}/bin/Release/$APP_PROJECT_NAME.1.0.0.nupkg