File tree 2 files changed +26
-11
lines changed
2 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 32
32
steps :
33
33
- name : Checkout
34
34
uses : actions/checkout@v2
35
- - name : Get version
36
- id : get_version
37
- run : |
38
- tag_name=${{ github.event.release.tag_name }}
39
- echo ::set-output name=VERSION::${tag_name:1}
40
- shell : bash
41
35
- name : Setup nuget
42
36
uses : nuget/setup-nuget@v1
43
37
- name : Update nuget source
50
44
- name : Restore packages
51
45
run : nuget restore
52
46
- name : Build with dotnet
53
- run : dotnet build --configuration Release --no-restore -p:Version=${{ steps.get_version.outputs.VERSION }}
47
+ run : dotnet build --configuration Release --no-restore -p:Version=${{ github.event.release.tag_name }}
54
48
- name : Pack nuget packages
55
- run : dotnet pack --configuration Release --no-build -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
49
+ run : dotnet pack --configuration Release --no-build --output nupkgs - p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:PackageVersion=${{ github.event.release.tag_name }}
56
50
- name : Publish nuget packages
57
- run : dotnet nuget push **/*.nupkg --source "github"
51
+ run : dotnet nuget push **/*.nupkg --source "github"
52
+ - name : Upload artifacts
53
+ uses : actions/upload-artifact@v1
54
+ with :
55
+ name : nupkgs
56
+ path : nupkgs
57
+
58
+ release :
59
+ needs : publish
60
+ runs-on : ubuntu-latest
61
+ steps :
62
+ - name : Download artifacts
63
+ uses : actions/download-artifact@v1
64
+ with :
65
+ name : nupkgs
66
+ path : nupkgs
67
+ - name : Release artifacts
68
+ uses : skx/github-action-publish-binaries@master
69
+ env :
70
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
71
+ with :
72
+ args : ' nupkgs/*'
Original file line number Diff line number Diff line change 9
9
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
10
10
</PackageReference >
11
11
<PackageReference Include =" Microsoft.CSharp" Version =" 4.7.0" />
12
- <PackageReference Include =" PrismaDB.Commons" Version =" 0.2.1 " />
13
- <PackageReference Include =" PrismaDB.Result" Version =" 0.2.2 " />
12
+ <PackageReference Include =" PrismaDB.Commons" Version =" 0.2.2 " />
13
+ <PackageReference Include =" PrismaDB.Result" Version =" 0.2.3 " />
14
14
</ItemGroup >
15
15
</Project >
You can’t perform that action at this time.
0 commit comments