Skip to content

Commit

Permalink
Merge branch 'master' into feature/apply_as_middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliot Coyle committed Nov 13, 2019
2 parents 5a237e5 + c568362 commit 62bbfdb
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: .NET Core

on: [push]
on:
push:
branches-ignore: release/*

jobs:
test:
name: Test on various OS and dotnet versions
build:
name: Build & Test
runs-on: ${{matrix.os}}
strategy:
matrix:
Expand All @@ -20,3 +22,4 @@ jobs:
run: |
dotnet build --configuration Release
dotnet test KnowYourLimits.UnitTests/KnowYourLimits.UnitTests.csproj
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release to Nuget

on:
release:
types: [published]

jobs:
build:
name: Build & Test
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Build & Test
run: |
dotnet build --configuration Release
dotnet test KnowYourLimits.UnitTests/KnowYourLimits.UnitTests.csproj
release:
needs: [build]
name: Release
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Build & Test
run: dotnet build --configuration Release
- name: Push package to nuget
run: dotnet nuget push **/*.nupkg
--api-key ${{ secrets.NUGET_DEPLOY_KEY }}
--source https://api.nuget.org/v3/index.json
--no-symbols true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![NuGet](https://img.shields.io/nuget/dt/KnowYourLimits.AspNetCore.svg)](https://www.nuget.org/packages/KnowYourLimits.AspNetCore)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ae41feded6fa467bb9d6b715a1604ac5)](https://www.codacy.com/manual/ejcoyle88/KnowYourLimits?utm_source=github.com&utm_medium=referral&utm_content=ejcoyle88/KnowYourLimits&utm_campaign=Badge_Grade) [![NuGet](https://img.shields.io/nuget/dt/KnowYourLimits.AspNetCore.svg)](https://www.nuget.org/packages/KnowYourLimits.AspNetCore)

# KnowYourLimits
A rate limiting library for .Net projects.
Expand Down

0 comments on commit 62bbfdb

Please sign in to comment.