-
Notifications
You must be signed in to change notification settings - Fork 24
29 lines (24 loc) · 904 Bytes
/
push-master.yml
File metadata and controls
29 lines (24 loc) · 904 Bytes
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
name: Build and Test and Publish (release)
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.200
- name: Restore .NET local tools
run: dotnet tool restore
- name: Build (testing skipped due to databases)
run: dotnet build -c Release -v n
- name: Pack
run: dotnet pack -c Release -v n
- name: Publish NuGets (if this version not published before)
run: dotnet nuget push bin\FSharp.Data.TypeProviders.*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_ORG_TOKEN_2021 }} --skip-duplicate
# NUGET_ORG_TOKEN_2021 is listed in "Repository secrets" in https://github.com/fsprojects/FSharp.Data/settings/secrets/actions
# note, the nuget org token expires around June 2021