Skip to content

Commit

Permalink
ci: Run the release workflow on changes (#1595)
Browse files Browse the repository at this point in the history
Currently we only exercise the release workflow on tagged releases, but
this makes it difficult to validate changes to the workflow itself.

This change updates the release workflow to run its build on pull
requests that change the workflow. The release-publishing step is only
run on tags, though.

Signed-off-by: Oliver Gould <ver@buoyant.io>
  • Loading branch information
olix0r committed Apr 15, 2022
1 parent a9d38ca commit 2599d0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: release

on:
pull_request: {}
push:
tags:
- "release/*"
Expand Down Expand Up @@ -70,6 +71,7 @@ jobs:
path: target/${{ matrix.target }}/release/package/*

release:
if: startsWith(github.ref, 'refs/tags/release/')
needs: [package]
runs-on: ubuntu-latest
timeout-minutes: 5
Expand Down

0 comments on commit 2599d0c

Please sign in to comment.