From f512b11ced3cf5c87af66f9b7f9f0a1a5d47d777 Mon Sep 17 00:00:00 2001 From: jo Date: Tue, 7 Nov 2023 10:27:35 +0100 Subject: [PATCH] ci: use github prerelease for prerelease versions Check if our semver version contains a '-', e.g. '1.2.0' => false or '1.2.0-rc0' => true. --- .github/workflows/release-please.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index bdac7e3c..b0d6cf9c 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -15,6 +15,7 @@ jobs: with: token: ${{ secrets.HCLOUD_BOT_TOKEN }} release-type: go + prerelease: ${{ contains("-", github.ref_name) }} # e.g. '1.2.0' or '1.2.0-rc0' package-name: packer-plugin-hcloud extra-files: |