-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (27 loc) · 905 Bytes
/
deployment.yaml
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
37
38
name: Deployment
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+**
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch all history for all tags and branches so GitVersion can work its magic
run: git fetch --prune --unshallow
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.300
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Package
run: dotnet pack --configuration Release --no-build
- name: Push to nuget.org
env:
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }}
run: dotnet nuget push "src/AspNetCore.TypedActionResults/bin/Release/AspNetCore.TypedActionResults.*.nupkg" -s https://api.nuget.org/v3/index.json -k ${NUGET_APIKEY}