Skip to content

Commit

Permalink
Merge pull request #48 from michaelosthege/release-action
Browse files Browse the repository at this point in the history
Add GitHub Action for Releasing to NuGet
  • Loading branch information
josephwoodward authored Jun 30, 2021
2 parents 8dbf30b + ad793a8 commit 28c5d04
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: release-pipeline

on:
release:
types:
- created


jobs:
release-nuget:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
- name: Install dependencies
run: dotnet restore
- name: Run tests
run: dotnet test
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: src/Serilog.Sinks.Loki/Serilog.Sinks.Loki.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
NUGET_SOURCE: https://api.nuget.org
INCLUDE_SYMBOLS: true

0 comments on commit 28c5d04

Please sign in to comment.