Created
February 22, 2020 21:29
-
-
Save maxkatz6/6a49f4549994c28dff5b4da035ca0b81 to your computer and use it in GitHub Desktop.
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: 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