diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 739538f..2881325 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -28,19 +28,18 @@ jobs: - run: ./build.sh release --test-suite=skip-e2e name: Release - - name: generate build provenance + - name: Generate build provenance uses: github-early-access/generate-build-provenance@main with: subject-path: "${{ github.workspace }}/${{ env.RELEASE_PACKAGES }}" - - name: publish canary packages github package repository + - name: Publish canary packages github package repository shell: bash # this is a best effort to push to GHPR, we've observed it being unavailable intermittently continue-on-error: true - run: dotnet nuget push '${{ env.RELEASE_PACKAGES }}' -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate --no-symbols + run: dotnet nuget push '${{ env.RELEASE_PACKAGES }}' -k ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/elastic/index.json" --skip-duplicate --no-symbols # Github packages requires authentication, this is likely going away in the future so for now we publish to feedz.io - - run: dotnet nuget push '${{ env.RELEASE_PACKAGES }}' -k ${{secrets.FEEDZ_IO_API_KEY}} -s https://f.feedz.io/elastic/all/nuget/index.json --skip-duplicate --no-symbols - name: publish canary packages to feedz.io - if: false && github.event_name == 'push' && startswith(github.ref, 'refs/heads') - + - name: Publish canary packages to feedz.io + run: dotnet nuget push '${{ env.RELEASE_PACKAGES }}' -k ${{ secrets.FEEDZ_IO_API_KEY }} --source https://f.feedz.io/elastic/all/nuget/index.json --skip-duplicate --no-symbols + if: github.event_name == 'push' && startswith(github.ref, 'refs/heads') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a016763..2322278 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: - run: ./build.sh release --test-suite=skip-all name: Release - - name: generate build provenance + - name: Generate build provenance uses: github-early-access/generate-build-provenance@main with: subject-path: "${{ github.workspace }}/${{ env.RELEASE_PACKAGES }}" @@ -49,7 +49,7 @@ jobs: - name: Release to Nuget (only for release events) if: ${{ github.event_name == 'release' }} - run: dotnet nuget push '${{ env.RELEASE_PACKAGES }}' -k ${REPO_API_KEY} -s ${REPO_API_URL} --skip-duplicate --no-symbols + run: dotnet nuget push '${{ env.RELEASE_PACKAGES }}' -k ${REPO_API_KEY} --source ${REPO_API_URL} --skip-duplicate --no-symbols - if: ${{ success() && github.event_name == 'release' }} uses: elastic/apm-pipeline-library/.github/actions/slack-message@current diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..3f0e003 --- /dev/null +++ b/nuget.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file