Skip to content

Commit

Permalink
Add GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelGosselin committed May 25, 2020
1 parent 5fbae9e commit 6393736
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI

on:
push:
branches:
- '!gh-pages'

jobs:
build:

steps:

- name: Checkout
uses: actions/checkout@v2

- name: Build with dotnet
run: dotnet build -c Release
22 changes: 22 additions & 0 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deployment

on:
push:
tags:
- ^v\d+\.\d+\.\d+(-.+)?$

jobs:
deploy:

steps:

- name: Checkout
uses: actions/checkout@v2

- name: Build and package with dotnet
run: dotnet pack -c Release

- name: Push to nuget.org
env:
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }}
run: dotnet nuget push "src/AspNetCore.TypedActionResults/bin/Release/AspNetCore.TypedActionResults.*.nupkg" -n -s https://api.nuget.org/v3/index.json -k $env:NUGET_APIKEY

0 comments on commit 6393736

Please sign in to comment.