diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ac796e..5507d8b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,12 @@ # Terraform Provider release workflow. name: Release -# This GitHub action creates a release when a new release is publised with a new tag +# This GitHub action creates a release when a tag that matches the pattern +# "v*" (e.g. v0.1.0) is created. on: - release: - types: [published] + push: + tags: + - 'v*' # Releases need permissions to read and write the repository contents. # GitHub considers creating releases and uploading assets as writing contents.