Skip to content

Commit aaeb143

Browse files
author
Michaël Catanzariti
authored
Create Deploy.yml
1 parent 8f57fa1 commit aaeb143

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/Deploy.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy to Nuget
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v1
15+
16+
- name: setup
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: 3.1.100
20+
21+
- name: build
22+
run: dotnet pack -p:Version=${GITHUB_REF##*/} -p:FileVersion=${GITHUB_REF##*/} -p:AssemblyVersion=${GITHUB_REF##*/} -c Release src/Dahomey.ExpressionEvaluator
23+
24+
- name: deploy
25+
run: dotnet nuget push src/Dahomey.ExpressionEvaluator/bin/Release/Dahomey.ExpressionEvaluator.${GITHUB_REF##*/}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)