From 679a4f773a8bf80f2bedb0879d80864c348521b9 Mon Sep 17 00:00:00 2001 From: Sumanth Lingappa <42572246+sumanth-lingappa@users.noreply.github.com> Date: Tue, 2 Apr 2024 11:10:31 +0530 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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.