Skip to content

liufang-robot Linux dotnet release #59

liufang-robot Linux dotnet release

liufang-robot Linux dotnet release #59

name: Linux dotnet release
run-name: ${{ github.actor }} Linux dotnet release
on:
workflow_dispatch:
push:
tags:
- v1.*.*
jobs:
linux_dotnet_build_and_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v3.0.3
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Check dotnet
run: dotnet --info
- name: configure
run: cmake -S. -Bbuild -DBUILD_DOTNET=ON
- name: build
run: cmake --build build
- name: upload pacakges
run:
cd ./build/dotnet/packages;
dotnet nuget push lebai.runtime.linux-x64.1.*.*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json;
dotnet nuget push lebai.1.*.*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json;