Skip to content

Commit

Permalink
combine dlls into single nuget package
Browse files Browse the repository at this point in the history
  • Loading branch information
R0boC0p committed May 23, 2024
1 parent 5efe537 commit 573902c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ on:
branches:
- master
- develop

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
dotnet-version: ["6.0.x", "7.0.x", "8.0.x"]

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -46,5 +49,20 @@ jobs:
mkdir -p ./nupkg/combined
cp ./nupkg/${{ matrix.dotnet-version }}/*.nupkg ./nupkg/combined/
push_nuget:
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: Push NuGet package to GitHub
run: dotnet nuget push ./nupkg/combined/*.nupkg --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --api-key ${{ secrets.GH_TOKEN }}

0 comments on commit 573902c

Please sign in to comment.