Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qdimka authored Sep 7, 2019
1 parent 1c00920 commit 480750e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: release

on: [release]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Environment.
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.2.401'
- name: Build package for Release.
run: |
cd src/
dotnet pack -c Release
if: github.event.action == 'published'
- name: Push package to nuget.
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
run: dotnet nuget push **/EntityFramework.Encryption.*.nupkg -k $NUGET_KEY -s https://www.nuget.org/api/v2/package
if: github.event.action == 'published'

0 comments on commit 480750e

Please sign in to comment.