Skip to content

Commit

Permalink
ci(triggers): change release process from tag push to release publish (
Browse files Browse the repository at this point in the history
…celestiaorg#3227)

<!--
Thank you for submitting a pull request!

Please make sure you have reviewed our contributors guide before
submitting your
first PR.

Please ensure you've addressed or included references to any related
issues.

Tips:
- Use keywords like "closes" or "fixes" followed by an issue number to
automatically close related issues when the PR is merged (e.g., "closes
#123" or "fixes #123").
- Describe the changes made in the PR.
- Ensure the PR has one of the required tags (kind:fix, kind:misc,
kind:break!, kind:refactor, kind:feat, kind:deps, kind:docs, kind:ci,
kind:chore, kind:testing)

-->

Updates the CI workflow trigger to run specifically from a release
publish, vs pushing a tag. This will separate any testing we do with
with any pre-release or temporary tags from triggering the GitHub
workflow to generate a release. Instead, only the release published
event should trigger this.

---------

Co-authored-by: Matthew Sevey <[email protected]>
  • Loading branch information
ramin and MSevey authored Mar 8, 2024
1 parent 0cb1b02 commit e902680
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ on:
push:
branches:
- main
# Trigger on version tags
tags:
- "v*"
release:
types: [published]
pull_request:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -111,7 +110,7 @@ jobs:
runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
github.event_name == 'release'
permissions: "write-all"
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit e902680

Please sign in to comment.