File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build release package
2
+
3
+ env :
4
+ # Stop wasting time caching packages
5
+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
6
+ # Disable sending usage data to Microsoft
7
+ DOTNET_CLI_TELEMETRY_OPTOUT : true
8
+
9
+ on :
10
+ push :
11
+ tags : ['v**']
12
+ jobs :
13
+ package :
14
+ runs-on : windows-latest
15
+ permissions :
16
+ packages : write
17
+ contents : read
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+ - name : Setup .NET Core
21
+ uses : actions/setup-dotnet@v3
22
+ with :
23
+ dotnet-version : |
24
+ 8.0.x
25
+ 7.0.x
26
+ 6.0.x
27
+ - name : Restore
28
+ run : git submodule update --init --recursive
29
+ - name : Package
30
+ run : dotnet pack build.proj
31
+ - name : Upload Artifacts
32
+ uses : actions/upload-artifact@v2
33
+ with :
34
+ name : nupkg
35
+ path : ./bin/nupkg/*.nupkg
36
+ - name : Push to GitHub Feed
37
+ shell : bash
38
+ run : |
39
+ for f in ./bin/nupkg/*.nupkg
40
+ do
41
+ echo $f
42
+ dotnet nuget push $f -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
43
+ done
You can’t perform that action at this time.
0 commit comments