File tree 1 file changed +11
-12
lines changed
1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 5
5
DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
6
6
# Disable sending usage data to Microsoft
7
7
DOTNET_CLI_TELEMETRY_OPTOUT : true
8
- # GitHub Packages Feed settings
9
- GITHUB_FEED : https://nuget.pkg.github.com/fsprojects
10
- GITHUB_USER : fsprojects
11
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12
8
13
9
on :
14
10
push :
41
37
42
38
package :
43
39
runs-on : windows-latest
44
-
40
+ permissions :
41
+ packages : write
42
+ contents : read
45
43
steps :
46
44
- uses : actions/checkout@v2
47
45
- name : Setup .NET Core
@@ -74,13 +72,14 @@ jobs:
74
72
with :
75
73
name : nupkg
76
74
path : ./bin/nupkg/*.nupkg
77
- # - name: Push to GitHub Feed
78
- # shell: bash
79
- # run: |
80
- # for f in ./bin/nupkg/*.nupkg
81
- # do
82
- # curl -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_FEED
83
- # done
75
+ - name : Push to GitHub Feed
76
+ shell : bash
77
+ run : |
78
+ for f in ./bin/nupkg/*.nupkg
79
+ do
80
+ echo $f
81
+ dotnet nuget push $f -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
82
+ done
84
83
85
84
docs :
86
85
runs-on : windows-latest
You can’t perform that action at this time.
0 commit comments