mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 03:16:11 +00:00
33 lines
608 B
YAML
33 lines
608 B
YAML
name: Publish Release to NuGet
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Setup .NET 5
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 5.0.*
|
|
|
|
- name: Setup .NET Core
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 3.1.*
|
|
|
|
- name: Build with dotnet
|
|
run: ./build.sh --linksources=true --verbosity=verbose
|
|
shell: bash
|
|
|
|
- name: Publish to NuGet
|
|
run: dotnet nuget push packaging/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }}
|
|
shell: bash
|