Only run build and release from tags

This commit is contained in:
Eugene Dementyev
2023-07-07 22:34:17 +12:00
parent b399d0092c
commit cae2774632

View File

@@ -46,7 +46,8 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build
- name: Build and release
if: startsWith(github.ref, 'refs/tags/') && success()
env:
# get tags from the json object and pass as a string-encoded list
tags: "${{ toJSON(fromJSON(steps.meta.outputs.json).tags) }}"