Skip to content

Commit 77d4052

Browse files
authored
Distribute with Snapcraft (#43)
* Distribute with Snapcraft * Add note regarding beta to Snap description
1 parent d4456e1 commit 77d4052

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ permissions:
1717
jobs:
1818
goreleaser:
1919
runs-on: ubuntu-latest
20+
env:
21+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
2022
steps:
2123
- uses: actions/checkout@v4
2224
with:
@@ -32,10 +34,12 @@ jobs:
3234
with:
3335
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
3436
passphrase: ${{ secrets.GPG_PASSPHRASE }}
37+
- name: Install Snapcraft
38+
uses: samuelmeuli/action-snapcraft@v2
3539
- name: Run GoReleaser
3640
uses: goreleaser/goreleaser-action@v5
3741
with:
3842
args: release --clean
3943
env:
4044
GITHUB_TOKEN: ${{ secrets.CLI_RELEASE }}
41-
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
45+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

.goreleaser.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,19 @@ brews:
7878
# If set to auto, the release will not be uploaded to the homebrew tap repo
7979
# if the tag has a prerelease indicator (e.g. v0.0.1-alpha1)
8080
# Not setting it for now so we can publish prerelease tags
81-
# skip_upload: auto
81+
# skip_upload: auto
82+
83+
snapcrafts:
84+
# IDs of the builds for which to create packages for
85+
builds:
86+
- linux-builds
87+
# The name of the snap
88+
name: stackit-cli
89+
# The canonical title of the application, displayed in the software
90+
# centre graphical frontends
91+
title: STACKIT CLI
92+
publish: true
93+
summary: A command-line interface to manage STACKIT resources.
94+
description: "A command-line interface to manage STACKIT resources.
95+
This CLI is in a BETA state. More services and functionality will be supported soon."
96+
license: Apache-2.0

0 commit comments

Comments
 (0)