From eac60c99541f07650f3e0e31cca0b617c7c926b3 Mon Sep 17 00:00:00 2001 From: Matthew Kobayashi <1856537+MattKobayashi@users.noreply.github.com> Date: Sun, 29 Sep 2024 03:00:01 +1000 Subject: [PATCH] fix: Trigger on release publish (#38) --- .github/workflows/build-publish.yml | 10 +++++++--- .github/workflows/build-test.yaml | 3 ++- .gitignore | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 6c14974..2876751 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -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: diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index d809f16..27e43cd 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -3,7 +3,8 @@ name: Build and test container image on: pull_request: - branches: [main] + branches: + - main workflow_dispatch: env: diff --git a/.gitignore b/.gitignore index 1397432..550aef3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.pkl +.DS_Store