diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 134f1bdc35..c1f687cdb5 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 636c215cca..e839733970 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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: @@ -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