From ab063b3f6928cc3430c62c8edcca18de6eadf4cc Mon Sep 17 00:00:00 2001 From: ccamel Date: Fri, 13 Dec 2024 18:05:49 +0100 Subject: [PATCH 1/2] ci(workflow): restrict crate publication trigger to new releases --- .github/workflows/publish.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 70424cfb..1071499f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,8 @@ name: Publish on: - push: - branches: [main] - tags: ["v*"] + release: + types: [published] concurrency: group: publish-${{ github.ref }} From 40f390d926a4b3576edcf5bf712b7d79b977e16e Mon Sep 17 00:00:00 2001 From: ccamel Date: Fri, 13 Dec 2024 18:12:09 +0100 Subject: [PATCH 2/2] ci(workflow): ensure in-progress jobs are not canceled for release events --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1071499f..bb14f8cf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,7 +6,7 @@ on: concurrency: group: publish-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: false jobs: publish-crates: