From c07731c6e5ab9182b9806d49ad4579b2314f9232 Mon Sep 17 00:00:00 2001 From: FingerLeader <43462394+FingerLeader@users.noreply.github.com> Date: Mon, 15 Jul 2024 20:37:23 +0800 Subject: [PATCH] disable release when version is nightly (#208) --------- Signed-off-by: FingerLeader --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff6ca3ac..7500b1ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,7 @@ jobs: uses: goreleaser/goreleaser-action@v5 with: version: v1.12.3 - args: release --release-notes=.CHANGELOG.md + args: release ${{ contains(github.ref, 'nightly') && '--skip==publish' || '--release-notes=.CHANGELOG.md' }} env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} GORELEASER_CURRENT_TAG: ${{steps.changelog.outputs.TAG_NAME}}