Skip to content

Commit 48af068

Browse files
rodrigoramosRodrigo Ramos
andauthored
Adds Github Workflow to publish nuget (#45)
Co-authored-by: Rodrigo Ramos <[email protected]>
1 parent 99943ca commit 48af068

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: publish-on-release
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
publish:
9+
name: build, pack & publish
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Setup .NET Core
16+
uses: actions/setup-dotnet@v1
17+
with:
18+
dotnet-version: 5.0.103
19+
20+
- name: publish Xamarin.Forms.TestingLibrary
21+
id: publish_nuget_common
22+
uses: rohith/publish-nuget@v2
23+
with:
24+
PROJECT_FILE_PATH: src/Xamarin.Forms.TestingLibrary/Xamarin.Forms.TestingLibrary.csproj
25+
PACKAGE_NAME: Xamarin.Forms.TestingLibrary
26+
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
27+
TAG_COMMIT: false
28+
VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
29+
INCLUDE_SYMBOLS: true
30+

0 commit comments

Comments
 (0)