Skip to content

Commit

Permalink
Merge pull request #2023 from rsteube/goreleaser-rm-snapcraft
Browse files Browse the repository at this point in the history
goreleaser: removed snapcraft
  • Loading branch information
rsteube authored Nov 11, 2023
2 parents 0be99c4 + dbd167b commit 2599bf0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@ jobs:
- name: "carapace-lint"
run: go run ./cmd/carapace-lint completers/*/cmd/*.go

- name: setup-snapcraft
if: startsWith(github.ref, 'refs/tags/')
# FIXME: the mkdirs are a hack for https://github.com/goreleaser/goreleaser/issues/1715
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
mkdir -p $HOME/.cache/snapcraft/download
mkdir -p $HOME/.cache/snapcraft/stage-packages
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -68,7 +59,6 @@ jobs:
AUR_KEY: ${{ secrets.AUR_KEY }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
GORELEASER_GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}

doc:
runs-on: ubuntu-latest
Expand Down
10 changes: 0 additions & 10 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,6 @@ nfpms:
- rpm
- termux.deb

snapcrafts:
- name_template: "carapace_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
name: "carapace"
summary: "multi-shell multi-command argument completer"
description: "multi-shell multi-command argument completer"
license: "MIT"
grade: stable
confinement: classic
publish: true

publishers:
- name: fury
cmd: "bash -c \"[[ {{.ArtifactPath}} =~ ^.*.(deb|rpm)$ ]] && curl -F package=@{{abs .ArtifactPath}} https://$FURY_TOKEN@push.fury.io/rsteube/ || true\""
Expand Down

0 comments on commit 2599bf0

Please sign in to comment.