-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.01 KB
/
Copy pathdotnet.yml
File metadata and controls
42 lines (33 loc) · 1.01 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
42
name: CI
env:
GITHUB_FEED: https://nuget.pkg.github.com/EmptyBucket/index.json
GITHUB_KEY: ${{ secrets.REPOSITORIES_GITHUB_PAT }}
NUGET_FEED: https://api.nuget.org/v3/index.json
NUGET_KEY: ${{ secrets.REPOSITORIES_NUGET_PAT }}
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core SDK
uses: actions/[email protected]
- name: Create Release NuGet package
run: |
dotnet pack -c Release -o packages src/Repositories.Abstractions
dotnet pack -c Release -o packages src/Repositories.Ef
- name: Push to GitHub Feed
run: |
for f in ./packages/*.nupkg
do
dotnet nuget push $f -s $GITHUB_FEED -k $GITHUB_KEY --skip-duplicate
done
- name: Push to Nuget Feed
run: |
for f in ./packages/*.nupkg
do
dotnet nuget push $f -s $NUGET_FEED -k $NUGET_KEY --skip-duplicate
done