From a051490dffcf1d019e1b6a14c28f90979c1c6788 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Thu, 17 Nov 2022 23:30:37 -0500 Subject: [PATCH] remove furry.io and add cloud smith --- .github/workflows/release_build.yml | 13 +++++++------ .goreleaser.yaml | 29 ++++++++++++++++------------- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 134f1bdc3..c1f687cdb 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -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 }} + diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 636c215cc..e83973397 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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