-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (28 loc) · 1.26 KB
/
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
32
33
34
35
36
name: Publish dotnet package
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ["8.0.x"]
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Create GoatQuery package
run: dotnet pack --configuration Release -p:Version=${{ github.event.release.tag_name }} *.csproj
working-directory: ./src/GoatQuery/src
- name: Create GoatQuery.AspNetCore package
run: dotnet pack --configuration Release -p:Version=${{ github.event.release.tag_name }} *.csproj
working-directory: ./src/GoatQuery.AspNetCore/src
- name: Publish the GoatQuery package to Nuget
run: dotnet nuget push bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
working-directory: ./src/GoatQuery/src
- name: Publish the GoatQuery.AspNetCore package to Nuget
run: dotnet nuget push bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
working-directory: ./src/GoatQuery.AspNetCore/src