Skip to content

Commit 6ac80d9

Browse files
author
Maxim Shoshin
committed
Setup github actions
1 parent de21fd7 commit 6ac80d9

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

.github/workflows/build.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Use .NET 5.0
18+
uses: actions/setup-dotnet@v1
19+
with:
20+
dotnet-version: 5.0.100
21+
22+
- name: Build and pack
23+
run: |
24+
dotnet build --configuration Release
25+

.github/workflows/publishNuget.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- '*.*.*'
66

77
jobs:
8-
deploy:
8+
publish:
99
runs-on: ubuntu-latest
1010

1111
steps:
@@ -31,4 +31,4 @@ jobs:
3131
3232
- name: Nuget push
3333
run: |
34-
dotnet nuget push ./out/*.nupkg --api-key ${{secrets.NUGET_API_KEY}}
34+
dotnet nuget push ./out/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

TestCompose.sln

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ProjectSection(SolutionItems) = preProject
1010
dockerfile.tests = dockerfile.tests
1111
Directory.Build.props = Directory.Build.props
1212
testcompose.yml = testcompose.yml
13+
LICENSE = LICENSE
14+
.github\workflows\publishNuget.yml = .github\workflows\publishNuget.yml
1315
.github\workflows\build.yml = .github\workflows\build.yml
1416
EndProjectSection
1517
EndProject

0 commit comments

Comments
 (0)