-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.05 KB
/
ci.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
name: ci
on:
push:
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Pack
run: dotnet pack -c Release --no-build
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: nupkgs
path: '**/*.nupkg'
myget:
if: github.ref == 'refs/heads/develop'
runs-on: ubuntu-latest
needs: build
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Push
run: dotnet nuget push **\*.nupkg -s 'https://www.myget.org/F/yapoml/api/v2/package' -k ${{secrets.MYGET_API_KEY}}