Skip to content

Commit

Permalink
remove furry.io and add cloud smith
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Nov 18, 2022
1 parent bea0ff6 commit a051490
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@ jobs:
go-version: '>=1.19.3'
cache: true
cache-dependency-path: cli/go.sum
# More assembly might be required: Docker logins, GPG, etc. It all depends
# on your needs.
- uses: goreleaser/goreleaser-action@v2
with:
# either 'goreleaser' (default) or 'goreleaser-pro':
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
FURY_TOKEN: ${{ secrets.FURYPUSHTOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro'
# distribution:
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
- uses: actions/setup-python@v4
- run: pip install --upgrade cloudsmith-cli
- name: Publish to CloudSmith
run: sh cli/upload_to_cloudfront.sh
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}

25 changes: 14 additions & 11 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,29 @@ builds:
- env:
- CGO_ENABLED=0
binary: infisical
id: infisical
goos:
- windows
- darwin
- freebsd
- linux
id: infisical
- netbsd
- openbsd
- windows
goarch:
- arm
- 386
- amd64
- arm
- arm64
goarm:
- 5
- 6
- 7
ignore:
- goos: darwin
goarch: "386"
- goos: windows
goarch: "386"
- goos: freebsd
goarch: "386"
dir: ./cli

release:
Expand All @@ -39,12 +49,6 @@ changelog:
exclude:
- '^docs:'
- '^test:'
publishers:
- name: fury.io
ids:
- infisical
dir: "{{ dir .ArtifactPath }}"
cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/infisical/

# publishers:
# - name: fury.io
Expand All @@ -65,7 +69,6 @@ brews:
description: "The official Infisical CLI"
nfpms:
- id: infisical
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
package_name: infisical
builds:
- infisical
Expand Down

0 comments on commit a051490

Please sign in to comment.