liufang-robot Windows dotnet release #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows dotnet release | |
run-name: ${{ github.actor }} Windows dotnet release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- v1.*.* | |
jobs: | |
linux_dotnet_build_and_release: | |
runs-on: windows-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: configure | |
run: cmake -S. -Bbuild -G "Visual Studio 17 2022" -DBUILD_DOTNET=ON -DBUILD_DOCUMENTATION=OFF | |
- name: build | |
run: cmake --build build | |
- name: upload pacakges | |
run: | |
cd ./build/dotnet/packages; | |
dotnet nuget push lebai.runtime.win-x64.*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json; |