remove furry.io and add cloud smith

This commit is contained in:
Maidul Islam
2022-11-17 23:30:37 -05:00
parent bea0ff6e05
commit a051490dff
2 changed files with 23 additions and 19 deletions

View File

@@ -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 }}

View File

@@ -10,19 +10,29 @@ builds:
- env:
- CGO_ENABLED=0
binary: infisical
goos:
- windows
- darwin
- linux
id: infisical
goos:
- darwin
- freebsd
- linux
- 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:
@@ -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
@@ -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