mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 12:26:18 +00:00
add publish on tag action to push releases to NuGet (#2189)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
name: Publish Release to NuGet
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1.4.0
|
||||
with:
|
||||
dotnet-version: 3.1.201
|
||||
|
||||
- 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
|
||||
Reference in New Issue
Block a user