revert external action to cli commands
Some checks failed
build nuget workflow for TelegramBotBase project / Build-TelegramBotBase (x64, linux) (push) Failing after 35s
Some checks failed
build nuget workflow for TelegramBotBase project / Build-TelegramBotBase (x64, linux) (push) Failing after 35s
This commit is contained in:
parent
db0afd4668
commit
ec4bb85d40
@ -26,56 +26,21 @@ jobs:
|
|||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
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: ${{ env.APP_PROJECT_NAME }}/${{ env.APP_PROJECT_NAME }}.csproj
|
|
||||||
|
|
||||||
# Configuration to build and package
|
- name: Restore dependencies
|
||||||
# BUILD_CONFIGURATION: Release
|
run: dotnet restore $APP_PROJECT_NAME
|
||||||
|
|
||||||
# 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
|
- name: Build app
|
||||||
# run: dotnet build -c Release --no-restore $APP_PROJECT_NAME
|
run: dotnet build -c Release --no-restore $APP_PROJECT_NAME
|
||||||
|
|
||||||
# - name: Pack app
|
- name: Pack app
|
||||||
# run: dotnet pack --no-build $APP_PROJECT_NAME
|
run: dotnet pack --no-build $APP_PROJECT_NAME
|
||||||
|
|
||||||
# - name: asd
|
- name: Connect source
|
||||||
# run: dotnet nuget add source --name gitea https://git.kosyakmakc.ru/api/packages/kosyakmakc/nuget/index.json
|
run: dotnet nuget remove source git.kosyakmakc.ru
|
||||||
|
|
||||||
# - name: Upload nuget package
|
- name: Connect source
|
||||||
# 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
|
run: dotnet nuget add source --name git.kosyakmakc.ru https://git.kosyakmakc.ru/api/packages/kosyakmakc/nuget/index.json
|
||||||
|
|
||||||
|
- name: Upload nuget package
|
||||||
|
run: dotnet nuget push --source git.kosyakmakc.ru --api-key ${{ secrets.kosyakmakc_nuget_publish }} ${{ gitea.workspace }}/${{ env.APP_PROJECT_NAME }}/bin/Release/$APP_PROJECT_NAME.1.0.0.nupkg
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user