Skip to content

Commit

Permalink
Create publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss authored Oct 14, 2024
1 parent 9354c18 commit 4a6a485
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: NuGet Publish

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
name: Publish NuGet Package

environment: nuget.org

permissions:
contents: write

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build -c Release
- name: Publish NuGet Package
run: dotnet nuget push TRENZ.Lib.RazorMail/bin/Release/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
make_latest: true

0 comments on commit 4a6a485

Please sign in to comment.