From 52576ec0cc5ff16d41180d6c9183b3b5accd874b Mon Sep 17 00:00:00 2001 From: Charlie Poole Date: Thu, 26 Dec 2024 08:34:27 -0800 Subject: [PATCH] change workflow triggers --- .github/workflows/publish-recipe.yml | 2 -- recipe/publishing.cake | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-recipe.yml b/.github/workflows/publish-recipe.yml index 1180776..7262e54 100644 --- a/.github/workflows/publish-recipe.yml +++ b/.github/workflows/publish-recipe.yml @@ -4,8 +4,6 @@ on: workflow_dispatch: pull_request: push: - tags-ignore: - - '*-alpha.*' jobs: publish-recipe: diff --git a/recipe/publishing.cake b/recipe/publishing.cake index 2a755a3..e780160 100644 --- a/recipe/publishing.cake +++ b/recipe/publishing.cake @@ -79,9 +79,13 @@ public static class PackageReleaseManager try { _context.GitTag(BuildSettings.ProjectDirectory, releaseTag); - _context.GitPushRef(BuildSettings.ProjectDirectory, BuildSettings.GitHubOwner, BuildSettings.GitHubAccessToken, "origin", releaseTag); + _context.Information($" Release tagged as {releaseTag}."); - _context.Information($" Release tagged as {releaseTag} and pushed to origin."); + if (releaseTag.Contains("-alpha.")) + { + _context.GitPushRef(BuildSettings.ProjectDirectory, BuildSettings.GitHubOwner, BuildSettings.GitHubAccessToken, "origin", releaseTag); + _context.Information($" Release tag {releaseTag} was pushed to origin."); + } } catch (Exception ex) {