diff --git a/.github/workflows/dotnet.yaml b/.github/workflows/dotnet.yaml index e701f92..8e27025 100644 --- a/.github/workflows/dotnet.yaml +++ b/.github/workflows/dotnet.yaml @@ -125,9 +125,12 @@ jobs: all-required-checks-complete: needs: [check-format, build, expected-pack, analyze-code, github-tag-and-release-dry-run] + if: ${{ always() }} runs-on: ubuntu-latest steps: - - run: echo "All required checks complete." + - uses: G-Research/common-actions/check-required-lite@main + with: + needs-context: ${{ toJSON(needs) }} # This does not gate release, because external dependencies may be flaky. markdown-link-check: @@ -146,8 +149,13 @@ jobs: uses: actions/download-artifact@v4 with: name: nuget-package - - name: Publish to NuGet - run: dotnet nuget push "ApiSurface.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json + path: downloaded + - name: Publish NuGet package + uses: G-Research/common-actions/publish-nuget@main + with: + package-name: ApiSurface + nuget-key: ${{ secrets.NUGET_API_KEY }} + nupkg-dir: downloaded github-tag-and-release: runs-on: ubuntu-latest