Skip to content

Commit

Permalink
Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
b-bozo committed Jul 31, 2024
1 parent 643a9f5 commit 76cc740
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 146 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish_nuget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish to NuGet

on:
push:
tags:
- '*.*.*'

jobs:
publish:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./VoyadoEngage

steps:
- uses: actions/checkout@v4

- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x

- name: Copy README.md
run: cp ../README.md README.md

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release

- name: Pack
run: dotnet pack --no-build --configuration Release -p:PackageVersion=${{ github.ref_name }}

- name: Publish
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
Loading

0 comments on commit 76cc740

Please sign in to comment.