Skip to content

Commit

Permalink
ci: Updated release pipeline
Browse files Browse the repository at this point in the history
- Add release event trigger to CI/CD workflow
- Changed condition for publish job to only run on release event with 'published' action
  • Loading branch information
ntindle committed Nov 10, 2023
1 parent 4f6b966 commit fe14330
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]

jobs:
build:
Expand Down Expand Up @@ -74,7 +76,7 @@ jobs:
publish:
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: github.event_name == 'release' && github.event.action == 'published'
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit fe14330

Please sign in to comment.