From a69527160f91129fd64d07fe13f5cd60b1316a92 Mon Sep 17 00:00:00 2001 From: Michi Mutsuzaki Date: Wed, 29 Nov 2023 22:01:33 +0000 Subject: [PATCH] Build release binaries on pull requests Make sure all the release binaries build successfully. Signed-off-by: Michi Mutsuzaki --- .github/workflows/release.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a1644f65b9..40bc554222 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,14 +1,15 @@ on: + pull_request: {} push: # Sequence of patterns matched against refs/tags tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 -name: Create Release +name: Release jobs: build: - name: Create Release + name: Create Release ${{ github.event_name == 'pull_request' && '(dry-run)' }} if: github.repository == 'cilium/cilium-cli' runs-on: ubuntu-22.04 steps: @@ -25,6 +26,7 @@ jobs: run: make release - name: Create Release + if: github.event_name == 'push' uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}