-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 945 Bytes
/
publish-release.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
name: Publish DbUp Packages to NuGet
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
name: "Publish Package"
runs-on: windows-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Avoid pre-populating the NuGet package cache
steps:
- name: "Check Tag Value"
run: echo ${{ github.event.release.tag_name }}
- uses: robinraju/[email protected]
name: "Download Package from Release"
with:
repository: "DbUp/DbUp"
token: ${{ secrets.GITHUB_TOKEN }}
tag: "${{ github.event.release.tag_name }}"
fileName: "*"
tarBall: false
zipBall: false
- name: "Upload to NuGet"
shell: pwsh
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{ secrets.NUGET_APIKEY }}