From ab863658925e8be17a2ef68504586ad2122416b5 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Tue, 26 May 2020 15:44:22 +0200 Subject: [PATCH] add feedz.io publishing step --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d41401..c254dcd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,19 +41,24 @@ jobs: - run: ./build.sh generateapichanges -s true name: "Inspect public API changes" - - name: publish to github package repository + - name: publish canary packages github package repository if: github.event_name == 'push' && startswith(github.ref, 'refs/heads') shell: bash run: | until dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate --no-symbols true; do echo "Retrying"; sleep 1; done; + # Github packages requires authentication, this is likely going away in the future so for now we publish to feedz.io + - run: dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.FEEDZ_IO_API_KEY}} -s https://f.feedz.io/elastic/all/nuget/index.json --skip-duplicate --no-symbols true + name: publish canary packages to feedz.io + if: github.event_name == 'push' && startswith(github.ref, 'refs/heads') + - run: ./build.sh generatereleasenotes -s true name: Generate release notes for tag if: github.event_name == 'push' && startswith(github.ref, 'refs/tags') - run: ./build.sh createreleaseongithub -s true --token ${{secrets.GITHUB_TOKEN}} if: github.event_name == 'push' && startswith(github.ref, 'refs/tags') name: Create or update release for tag on github - + # - run: dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.NUGET_ORG_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols true # name: release to nuget.org # if: github.event_name == 'push' && startswith(github.ref, 'refs/tags')