forked from luberda-molinet/FFImageLoading
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.28 KB
/
publish.yml
File metadata and controls
41 lines (33 loc) · 1.28 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
name: Publish to NuGet
on:
release:
types: [ published ]
jobs:
publish:
runs-on: macos-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0.x
10.0.x
- name: Install workloads
run: dotnet workload install android ios
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: NuGet login (Trusted Publishing)
id: nuget-login
uses: nuget/login@v1
with:
user: Oleksii_Burianov
- name: Push to NuGet
run: |
dotnet nuget push source/FFImageLoading/bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}" --skip-duplicate
dotnet nuget push source/FFImageLoading.Droid/bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}" --skip-duplicate
dotnet nuget push source/FFImageLoading.Ios/bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}" --skip-duplicate