From ce1cd6d018be61332d298eece2ad83bcc1cf58ce Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Wed, 13 Aug 2025 17:06:51 +0400 Subject: [PATCH] build: run release workflow only on tags with semantic version --- .github/workflows/release.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 644acfc..dc8b17d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,14 +2,8 @@ name: Release on: push: - branches: - - main tags: - - 'v*.*.*' - pull_request: - branches: - - main - workflow_dispatch: + - 'v*' env: CARGO_TERM_COLOR: always @@ -93,7 +87,7 @@ jobs: New-Item -ItemType Directory -Force -Path artifacts | Out-Null $Archive = "artifacts/banderole-${{ matrix.target }}.zip" Compress-Archive -Path "$TargetDir/$BinName" -DestinationPath $Archive -Force - if (Test-Path 'LICENSE' -and Test-Path 'README.md') { + if ((Test-Path 'LICENSE') -and (Test-Path 'README.md')) { $DocsArchive = "artifacts/banderole-${{ matrix.target }}-with-docs.zip" Compress-Archive -Path "$TargetDir/$BinName","LICENSE","README.md" -DestinationPath $DocsArchive -Force }