-
-
Notifications
You must be signed in to change notification settings - Fork 15
29 lines (25 loc) · 864 Bytes
/
Copy pathPackageCI.yml
File metadata and controls
29 lines (25 loc) · 864 Bytes
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
name: Build and publish packages
on:
push:
branches: [ master ]
jobs:
build:
name: Build and publish package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.200
- name: Build
run: dotnet build ./Xamarin.Forms.NeoControls/Xamarin.Forms.NeoControls.csproj --configuration Release
- name: Pack
run: dotnet pack ./Xamarin.Forms.NeoControls/Xamarin.Forms.NeoControls.csproj --output ./artifacts --configuration Release
- name: Push Nupkg to GitHub Packages
uses: tanaka-takayoshi/nuget-publish-to-github-packages-action@v2.1
with:
nupkg-path: './artifacts/*.nupkg'
repo-owner: 'felipebaltazar'
gh-user: 'felipebaltazar'
token: ${{ secrets.GITHUB_TOKEN }}