diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a65f2872..34f1f30a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -24,6 +24,7 @@ jobs: # Needed to publish new packages to our S3-hosted APT repo AWS_ACCESS_KEY_ID: ${{ secrets.OBJECT_STORAGE_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.OBJECT_STORAGE_SECRET_ACCESS_KEY }} + IS_PRERELEASE: ${{ contains(github.ref_name, '-') }} steps: - uses: actions/checkout@v4 with: @@ -69,7 +70,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.CLI_RELEASE }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} - name: Publish packages to APT repo - if: contains(github.ref_name, '-') == false + if: ${{ env.IS_PRERELEASE == 'false' }} env: GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} GPG_PRIVATE_KEY_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2f44eb6b..3be0bd18 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -100,7 +100,7 @@ brews: name: CLI Release Bot email: noreply@stackit.de homepage: "https://github.com/stackitcloud/stackit-cli" - description: "A command-line interface to manage STACKIT resources.\nThis CLI is in a beta state. More services and functionality will be supported soon." + description: "A command-line interface to manage STACKIT resources." directory: Formula license: "Apache-2.0" # If set to auto, the release will not be uploaded to the homebrew tap repo @@ -117,12 +117,12 @@ snapcrafts: # centre graphical frontends title: STACKIT CLI summary: A command-line interface to manage STACKIT resources. - description: "A command-line interface to manage STACKIT resources.\nThis CLI is in a beta state. More services and functionality will be supported soon." + description: "A command-line interface to manage STACKIT resources." license: Apache-2.0 confinement: classic # Grade "devel" will only release to `edge` and `beta` channels # Grade "stable" will also release to the `candidate` and `stable` channels - grade: devel + grade: '{{ if eq .Env.IS_PRERELEASE "true" }}devel{{ else }}stable{{ end }}' # Whether to publish the Snap to the store publish: true diff --git a/README.md b/README.md index 93a35853..9284d7db 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,9 @@ [![Go Report Card](https://goreportcard.com/badge/github.com/stackitcloud/stackit-cli)](https://goreportcard.com/report/github.com/stackitcloud/stackit-cli) ![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/stackitcloud/stackit-cli) [![GitHub License](https://img.shields.io/github/license/stackitcloud/stackit-cli)](https://www.apache.org/licenses/LICENSE-2.0) -# STACKIT CLI (BETA) +# STACKIT CLI Welcome to the [STACKIT](https://www.stackit.de/en) CLI, a command-line interface for the STACKIT services. -This CLI is in a BETA state. More services and functionality will be supported soon. -Your feedback is appreciated! - ## Installation Please refer to our [installation guide](./INSTALLATION.md) for instructions on how to install and get started using the STACKIT CLI. diff --git a/internal/cmd/root.go b/internal/cmd/root.go index 97384911..52075122 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -41,7 +41,7 @@ func NewRootCmd(version, date string, p *print.Printer) *cobra.Command { cmd := &cobra.Command{ Use: "stackit", Short: "Manage STACKIT resources using the command line", - Long: "Manage STACKIT resources using the command line.\nThis CLI is in a BETA state.\nMore services and functionality will be supported soon. Your feedback is appreciated!", + Long: "Manage STACKIT resources using the command line.", Args: args.NoArgs, SilenceErrors: true, // Error is beautified in a custom way before being printed SilenceUsage: true, @@ -84,7 +84,7 @@ func NewRootCmd(version, date string, p *print.Printer) *cobra.Command { }, RunE: func(cmd *cobra.Command, args []string) error { if flags.FlagToBoolValue(p, cmd, "version") { - p.Outputf("STACKIT CLI (beta)\n") + p.Outputf("STACKIT CLI\n") parsedDate, err := time.Parse(time.RFC3339, date) if err != nil {