Skip to content

Instantly share code, notes, and snippets.

@maxkatz6
Created February 22, 2020 21:29
Show Gist options
  • Save maxkatz6/6a49f4549994c28dff5b4da035ca0b81 to your computer and use it in GitHub Desktop.
Save maxkatz6/6a49f4549994c28dff5b4da035ca0b81 to your computer and use it in GitHub Desktop.
name: Publish
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Clone working branch
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.102
- name: Dotnet Build
run: dotnet build src/TorrServer.Net.Client.sln --configuration Release
- name: Dotnet Pack
working-directory: src/TorrServer.Net.Client
run: dotnet pack -c Release
- name: Dotnet Nuget Push
working-directory: src/TorrServer.Net.Client/bin/Release
run: dotnet nuget push TorrServer.Net.Client.*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
continue-on-error: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment