-
Notifications
You must be signed in to change notification settings - Fork 8
33 lines (28 loc) · 992 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
32
33
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Create Release
on:
release:
types: [published]
jobs:
Publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
working-directory: ./src/Assistants/
- name: Build
run: dotnet build --no-restore --configuration Release
working-directory: ./src/Assistants/
- name: Pack
run: dotnet pack --configuration Release /p:Version=${{ github.event.release.tag_name }}
working-directory: ./src/Assistants/
- name: Push to NuGet
run: |
dotnet nuget push **/*.nupkg --source nuget.org --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
working-directory: ./src/Assistants/