Skip to content

Commit

Permalink
Build release binaries on pull requests
Browse files Browse the repository at this point in the history
Make sure all the release binaries build successfully.

Signed-off-by: Michi Mutsuzaki <[email protected]>
  • Loading branch information
michi-covalent committed Dec 1, 2023
1 parent eed0501 commit a695271
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}
Expand Down

0 comments on commit a695271

Please sign in to comment.