Skip to content

Commit

Permalink
add snapcraft section (#297)
Browse files Browse the repository at this point in the history
* add snapcraft section

* goreleaser: publish snap

Co-authored-by: Helder Moreira <[email protected]>
  • Loading branch information
Alessio Treglia and helder-moreira authored Oct 8, 2020
1 parent 540b392 commit 6316ad5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- "*"

jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -24,6 +25,10 @@ jobs:
- name: Set up packr2
run: go get -u github.com/gobuffalo/packr/v2/packr2

- name: Set up Snapcraft
run: |
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
- name: Checkout
uses: actions/checkout@v2
with:
Expand All @@ -42,6 +47,12 @@ jobs:
cd starport/interface/cli/starport
packr2 -v
- name: Snapcraft Login
env:
SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }}
run: |
snapcraft login --with <(echo "$SNAPCRAFT_LOGIN")
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
19 changes: 17 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,28 @@ builds:
- amd64
- arm64


brews:
- name: "starport"
description: "CLI tool for developing Cosmos SDK apps."
homepage: "https://github.com/tendermint/starport"
github:
tap:
owner: "tendermint"
name: "homebrew-tap"
install: |
bin.install "starport"
snapcrafts:
- name: starport
replacements:
darwin: macOS
summary: The easiest way to build a blockchain.
description: Starport is the easiest way to build blockchains. It is a developer-friendly interface to the Cosmos SDK, the world's most widely-used blockchain application framework. Starport generates boilerplate code for you, so you can focus on writing business logic.
grade: stable
confinement: strict
base: core18
license: Apache-2.0
publish: true
apps:
starport:
plugs: ["home", "personal-files"]
command: starport

0 comments on commit 6316ad5

Please sign in to comment.