-
Notifications
You must be signed in to change notification settings - Fork 59
36 lines (34 loc) · 959 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core (Build)
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Test with dotnet
run: dotnet test
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core (Deploy)
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Pack nuget package
run: dotnet pack --configuration Release
- name: Push package to nuget
run: dotnet nuget push YahooFinanceApi/bin/Release/YahooFinanceApi.*.nupkg
--api-key ${{ secrets.NUGET_DEPLOY_KEY_YAHOOFINANCEAPI }}
--source https://api.nuget.org/v3/index.json
--skip-duplicate