-
-
Notifications
You must be signed in to change notification settings - Fork 30
44 lines (41 loc) · 1.18 KB
/
Copy pathpublish-nuget.yml
File metadata and controls
44 lines (41 loc) · 1.18 KB
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
37
38
39
40
41
42
43
44
name: Publish NuGet
on:
push:
tags: [ 'v*' ]
workflow_dispatch:
inputs:
discord-description:
description: Discord description
type: string
default: ""
discord-footer:
description: Discord footer
type: string
default: ""
permissions:
contents: write # important for release creation and asset upload
packages: write
jobs:
deploy:
name: Publish NuGet
uses: bigbang1112/workflows/.github/workflows/publish-nuget-immutable.yml@main
with:
dotnet-version: |
10.x.x
9.x.x
8.x.x
project-path: Src/*
test-path: Tests/*
pack-path: "{Src/*,Templates}"
push-to-custom-feeds: true
custom-feed-urls: https://nuget.gbx.tools/v3/index.json
release-title-prefix: GBX.NET
main-project: GBX.NET
discord-top-lines: ${{ inputs.discord-description }}
discord-bottom-lines: |
Explorer: <https://explorer.gbx.tools/>
${{ inputs.discord-footer }}
secrets:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
CUSTOM_FEED_API_KEYS: ${{ secrets.NUGET_GBXTOOLS_API_KEY }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}