-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 878 Bytes
/
nuget_publish.yml
File metadata and controls
34 lines (27 loc) · 878 Bytes
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
name: Build and Publish NuGet Package
on:
release:
types:
- created
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Main Repository
uses: actions/checkout@v2
with:
repository: 'DbSyncKit/DbSyncKit'
- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'
- name: Build and Publish DbSyncKit.Templates.MySQL.Metadata
run: |
cd DbSyncKit.Templates.MySQL.Metadata/src
dotnet build -c Release
dotnet pack -c Release
dotnet nuget push bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_DEPLOY }}