Some checks failed
build nuget workflow for TelegramBotBase project / Build-TelegramBotBase (x64, linux) (push) Failing after 35s
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: build nuget workflow for TelegramBotBase project
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
Build-TelegramBotBase:
|
|
env:
|
|
APP_PROJECT_NAME: TelegramBotBase
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- linux
|
|
# - win
|
|
arch:
|
|
- x64
|
|
#- x32
|
|
#- arch64
|
|
runs-on: [ "${{ matrix.os }}" ]
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup dotnet
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: '8.0.x'
|
|
|
|
- name: Restore dependencies
|
|
run: dotnet 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: 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
|