Skip to content

Commit

Permalink
fix: Trigger on release publish (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKobayashi authored Sep 28, 2024
1 parent d630a19 commit eac60c9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
name: Build and publish container image

on:
release:
types:
- published
push:
branches: [main]
# Publish semver tags as releases.
tags: ['v*.*.*']
branches:
- main
tags:
- 'v[0-9]+*'
workflow_dispatch:

env:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Build and test container image

on:
pull_request:
branches: [main]
branches:
- main
workflow_dispatch:

env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.pkl
.DS_Store

0 comments on commit eac60c9

Please sign in to comment.