diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a96da4d48..374602149 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -9,10 +9,17 @@ name: Create and publish a Docker image on: push: - branches: ['master'] + branches: + - master release: types: [published] pull-request: + paths: + - 'pyproject.toml' + - 'poetry.lock' + - '.github/**' + - 'src/**' + - 'tests/**' # Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. env: