@@ -12,14 +12,14 @@ jobs:
12
12
- name : Setup .NET Core
13
13
uses : actions/setup-dotnet@v1
14
14
with :
15
- dotnet-version : 3.1.302
15
+ dotnet-version : 5.0.x
16
16
- name : Build Reason
17
17
run : " echo ref: ${{github.ref}} event: ${{github.event_name}}"
18
18
- name : Build Version
19
19
run : |
20
- dotnet tool install --global minver-cli --version 2.3 .0
20
+ dotnet tool install --global minver-cli --version 2.5 .0
21
21
version=$(minver --tag-prefix v)
22
- echo "::set-env name= MINVERVERSIONOVERRIDE:: $version"
22
+ echo "MINVERVERSIONOVERRIDE= $version" >> $GITHUB_ENV
23
23
- name : Build
24
24
run : dotnet build --configuration Release
25
25
- name : Start Services
@@ -29,19 +29,16 @@ jobs:
29
29
- name : Package
30
30
if : github.event_name != 'pull_request'
31
31
run : dotnet pack --configuration Release --no-build
32
- - name : Install GitHub Package Tool
33
- if : github.event_name != 'pull_request'
34
- run : dotnet tool install gpr -g
35
32
- name : Publish CI Packages
36
33
if : github.event_name != 'pull_request'
37
34
run : |
38
35
for package in $(find -name "*.nupkg" | grep "minver" -v); do
39
36
echo "${0##*/}": Pushing $package...
40
37
41
38
# GitHub
42
- gpr push $package -k ${{ secrets.GITHUB_TOKEN }} || true
43
-
44
- # feedz (remove once GPR supports anonymous)
39
+ dotnet nuget push $package --source https://nuget.pkg.github.com/foundatiofx/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
40
+
41
+ # Feedz (remove once GitHub supports anonymous access )
45
42
dotnet nuget push $package --source https://f.feedz.io/foundatio/foundatio/nuget --api-key ${{ secrets.FEEDZ_KEY }} --skip-duplicate
46
43
done
47
44
- name : Publish Release Packages
0 commit comments