Commit fc3e10a 1 parent 3da63cc commit fc3e10a Copy full SHA for fc3e10a
File tree 1 file changed +39
-9
lines changed
1 file changed +39
-9
lines changed Original file line number Diff line number Diff line change 12
12
required : true
13
13
default : ' https://api.nuget.org/v3/index.json'
14
14
15
+ env :
16
+ Version : ${{ github.event.inputs.releaseVersion }}
17
+ PackageVersion : ${{ github.event.inputs.releaseVersion }}
18
+
15
19
jobs :
16
- release_packages :
17
- name : Release packages to nuget.org
20
+ verify :
21
+ name : Run tests
18
22
runs-on : ubuntu-latest
19
23
20
24
steps :
21
25
- uses : actions/checkout@v2
26
+ - name : Setup .NET
27
+ uses : actions/setup-dotnet@v1
28
+ with :
29
+ dotnet-version : 3.1.x
30
+ - name : Test
31
+ run : dotnet test --verbosity normal
32
+
33
+ release_zip :
34
+ needs : verify
35
+ name : Release BaGet.zip to GitHub
36
+ runs-on : ubuntu-latest
22
37
38
+ steps :
39
+ - uses : actions/checkout@v2
23
40
- name : Setup .NET
24
41
uses : actions/setup-dotnet@v1
25
42
with :
26
43
dotnet-version : 3.1.x
44
+ - name : Publish
45
+ run : dotnet publish src/BaGet --configuration Release --output artifacts
46
+ - name : Upload
47
+ uses : actions/upload-artifact@v2
48
+ with :
49
+ name : BaGet
50
+ path : artifacts
27
51
28
- - name : Restore dependencies
29
- run : dotnet restore
30
- - name : Build
31
- run : dotnet build --no-restore
32
- - name : Test
33
- run : dotnet test --no-build --verbosity normal
52
+ release_packages :
53
+ needs : verify
54
+ name : Release packages to nuget.org
55
+ runs-on : ubuntu-latest
56
+
57
+ steps :
58
+ - uses : actions/checkout@v2
59
+ - name : Setup .NET
60
+ uses : actions/setup-dotnet@v1
61
+ with :
62
+ dotnet-version : 3.1.x
34
63
- name : Pack
35
- run : dotnet pack --configuration Release -p:PackageVersion=${{ github.event.inputs.releaseVersion }} - -output artifacts
64
+ run : dotnet pack --configuration Release --output artifacts
36
65
- name : Push
37
66
run : dotnet nuget push "*" -s ${{ github.event.inputs.packageSource }} -k ${{secrets.NUGET_API_KEY}}
38
67
working-directory : artifacts
39
68
40
69
release_docker_image :
70
+ needs : verify
41
71
name : Release Docker image to Docker Hub
42
72
runs-on : ubuntu-latest
43
73
You can’t perform that action at this time.
0 commit comments