-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (27 loc) · 917 Bytes
/
Copy pathnuget.yml
File metadata and controls
29 lines (27 loc) · 917 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
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.x'
- name: Build
run: dotnet build --configuration Release
- name: Pack
run: dotnet pack --configuration Release --no-build --output ./artifacts
- name: Get version
uses: kzrnm/get-net-sdk-project-versions-action@v2
id: get-version
with:
proj-path: NpgSqlSourceGenerator/NpgSqlSourceGenerator.csproj
- name: Push
run: dotnet nuget push ./artifacts/Atulin.NpgSqlSourceGenerator.${{steps.get-version.outputs.package-version}}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate