update dependencies and add workflow for publish nuget
build nuget workflow for TelegramBotBase project / Build-TelegramBotBase (x64, linux) (push) Failing after 41s
build nuget workflow for TelegramBotBase project / Build-TelegramBotBase (x64, linux) (push) Failing after 41s
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
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 --api-key ${{ secrets.kosyakmakc_nuget_publish }} https://git.kosyakmakc.ru/api/packages/kosyakmakc/nuget/index.json
|
||||
|
||||
- name: Upload nuget package
|
||||
run: dotnet nuget push --source {source_name} {package_file}
|
||||
Reference in New Issue
Block a user