-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (28 loc) · 965 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Publish on NuGet
on:
release:
types: [created]
env:
VERSION: ${{ github.event.release.tag_name }}
jobs:
publish-nuget:
runs-on: ubuntu-latest
strategy:
matrix:
package: [ Fluss, Fluss.HotChocolate, Fluss.PostgreSQL, Fluss.Regen, Fluss.Testing ]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.x
9.x
- name: Strip v from tag to determine version
run: echo "VERSION=${VERSION/v/}" >> $GITHUB_ENV
- name: Package
run: dotnet pack --configuration Release /p:Version=${VERSION}
working-directory: src/${{ matrix.package }}
- name: Publish
run: dotnet nuget push bin/Release/${{ matrix.package }}.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
working-directory: src/${{ matrix.package }}