-
Notifications
You must be signed in to change notification settings - Fork 32
64 lines (54 loc) · 1.86 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Release
on:
workflow_dispatch: {}
release:
types: [published]
env:
CI: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_NOLOGO: true
MSBUILDTERMINALLOGGER: off
jobs:
build:
uses: ./.github/workflows/ci.yml
if: contains('["Swimburger","dprothero","AJLange"]', github.actor)
name: Build, test, and pack
permissions:
checks: write
secrets: inherit
release:
if: contains('["Swimburger","dprothero","AJLange"]', github.actor)
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x
- uses: actions/download-artifact@v4
name: Download Twilio.AspNet.Common NuGet Package
with:
name: Twilio.AspNet.Common NuGet Package
- uses: actions/download-artifact@v4
name: Download Twilio.AspNet.Core NuGet Package
with:
name: Twilio.AspNet.Core NuGet Package
- uses: actions/download-artifact@v4
name: Download Twilio.AspNet.Mvc NuGet Package
with:
name: Twilio.AspNet.Mvc NuGet Package
- name: (Twilio.AspNet.Common) Push to NuGet
run: |
dotnet nuget push 'Twilio.AspNet.Common.*.nupkg' \
--api-key ${{ secrets.NUGET_API_KEY }} \
--source https://api.nuget.org/v3/index.json
- name: (Twilio.AspNet.Core) Push to NuGet
run: |
dotnet nuget push 'Twilio.AspNet.Core.*.nupkg' \
--api-key ${{ secrets.NUGET_API_KEY }} \
--source https://api.nuget.org/v3/index.json
- name: (Twilio.AspNet.Mvc) Push to NuGet
run: |
dotnet nuget push 'Twilio.AspNet.Mvc.*.nupkg' \
--api-key ${{ secrets.NUGET_API_KEY }} \
--source https://api.nuget.org/v3/index.json