Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 79b03d5

Browse files
authored
Create publish.yml
1 parent c421aca commit 79b03d5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: NuGet_Publish
2+
3+
on:
4+
# push:
5+
# branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
env:
15+
NUGET_AUTH_TOKEN: ${{secrets.NUGET_API_TOKEN}}
16+
17+
runs-on: macos-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Build and generate uCrop
21+
run: |
22+
cd TOCropViewController.Xamarin
23+
dotnet restore
24+
msbuild TOCropViewController.Xamarin.csproj /p:Configuration=Release
25+
nuget pack TimOliver.TOCropViewController.Xamarin.nuspec
26+
nuget push "*.nupkg" -SkipDuplicate -NoSymbols -ApiKey $NUGET_AUTH_TOKEN -Source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)