Skip to content

Commit 7e4b958

Browse files
authored
Publish to Snap Store with classic confinement (beta channel) (#247)
* Publish to Snap Store with classic confinement (beta channel) * Do not publish prereleases to APT and Homebrew
1 parent d5a495f commit 7e4b958

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Release
33

44
# This GitHub action creates a release when a tag that matches one of the patterns below
5-
# E.g. v0.1.0, v0.1.0-something.1, etc
5+
# E.g. v0.1.0, v0.1.0-something.1, etc
66
on:
77
push:
88
tags:
@@ -69,8 +69,7 @@ jobs:
6969
GITHUB_TOKEN: ${{ secrets.CLI_RELEASE }}
7070
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
7171
- name: Publish packages to APT repo
72-
# Temporarily not skipping prereleases to test integration with APT
73-
# if: contains(github.ref_name, '-') == false
72+
if: contains(github.ref_name, '-') == false
7473
env:
7574
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
7675
GPG_PRIVATE_KEY_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

.goreleaser.yaml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ builds:
1616
goos:
1717
- windows
1818
binary: "stackit"
19-
19+
2020
- id: macos-builds
2121
env:
2222
- CGO_ENABLED=0
2323
- BUNDLE_ID=cloud.stackit.cli
24-
- 'APPLE_APPLICATION_IDENTITY=Developer ID Application: Schwarz IT KG'
24+
- "APPLE_APPLICATION_IDENTITY=Developer ID Application: Schwarz IT KG"
2525
goos:
2626
- darwin
2727
binary: "stackit"
@@ -80,7 +80,15 @@ nfpms:
8080

8181
signs:
8282
- artifacts: package
83-
args: ["-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
83+
args:
84+
[
85+
"-u",
86+
"{{ .Env.GPG_FINGERPRINT }}",
87+
"--output",
88+
"${signature}",
89+
"--detach-sign",
90+
"${artifact}",
91+
]
8492

8593
brews:
8694
- name: stackit
@@ -96,13 +104,12 @@ brews:
96104
license: "Apache-2.0"
97105
# If set to auto, the release will not be uploaded to the homebrew tap repo
98106
# if the tag has a prerelease indicator (e.g. v0.0.1-alpha1)
99-
# Temporarily not skipping prereleases to test integration with Homebrew
100-
# skip_upload: auto
107+
skip_upload: auto
101108

102109
snapcrafts:
103110
# IDs of the builds for which to create packages for
104111
- builds:
105-
- linux-builds
112+
- linux-builds
106113
# The name of the snap
107114
name: stackit
108115
# The canonical title of the application, displayed in the software
@@ -111,7 +118,9 @@ snapcrafts:
111118
summary: A command-line interface to manage STACKIT resources.
112119
description: "A command-line interface to manage STACKIT resources.\nThis CLI is in a BETA state. More services and functionality will be supported soon."
113120
license: Apache-2.0
114-
# Will only publish to `edge` and `beta` channels
121+
confinement: classic
122+
# Grade "devel" will only release to `edge` and `beta` channels
123+
# Grade "stable" will also release to the `candidate` and `stable` channels
115124
grade: devel
116-
# Skip publishing until we get approval for used interfaces or classic confinement
117-
publish: false
125+
# Whether to publish the Snap to the store
126+
publish: true

0 commit comments

Comments
 (0)