Skip to content

Commit

Permalink
Distribute with Snapcraft (#43)
Browse files Browse the repository at this point in the history
* Distribute with Snapcraft

* Add note regarding beta to Snap description
  • Loading branch information
joaopalet authored Feb 1, 2024
1 parent d4456e1 commit 77d4052
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ permissions:
jobs:
goreleaser:
runs-on: ubuntu-latest
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -32,10 +34,12 @@ jobs:
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v2
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.CLI_RELEASE }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
17 changes: 16 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,19 @@ brews:
# If set to auto, the release will not be uploaded to the homebrew tap repo
# if the tag has a prerelease indicator (e.g. v0.0.1-alpha1)
# Not setting it for now so we can publish prerelease tags
# skip_upload: auto
# skip_upload: auto

snapcrafts:
# IDs of the builds for which to create packages for
builds:
- linux-builds
# The name of the snap
name: stackit-cli
# The canonical title of the application, displayed in the software
# centre graphical frontends
title: STACKIT CLI
publish: true
summary: A command-line interface to manage STACKIT resources.
description: "A command-line interface to manage STACKIT resources.
This CLI is in a BETA state. More services and functionality will be supported soon."
license: Apache-2.0

0 comments on commit 77d4052

Please sign in to comment.