diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 326854fa29..3d11a11578 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -34,16 +34,15 @@ jobs: run: | mkdir ../../osxcross git clone https://github.com/plentico/osxcross-target.git ../../osxcross/target - - uses: goreleaser/goreleaser-action@v2 + - uses: goreleaser/goreleaser-action@v4 with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }} FURY_TOKEN: ${{ secrets.FURYPUSHTOKEN }} AUR_KEY: ${{ secrets.AUR_KEY }} - CLI_VERSION: ${{github.ref_name}} - uses: actions/setup-python@v4 - run: pip install --upgrade cloudsmith-cli - name: Publish to CloudSmith diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e7a294f6bc..76e93a7371 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -14,7 +14,9 @@ before: builds: - id: darwin-build binary: infisical - ldflags: -X github.com/Infisical/infisical-merge/packages/util.CLI_VERSION={{ .Env.CLI_VERSION }} + ldflags: -X github.com/Infisical/infisical-merge/packages/util.CLI_VERSION={{ .Version }} + flags: + - -trimpath env: - CGO_ENABLED=1 - CC=/home/runner/work/osxcross/target/bin/o64-clang @@ -25,11 +27,15 @@ builds: - goos: darwin goarch: "386" dir: ./cli + - id: all-other-builds ldflags: -X github.com/Infisical/infisical-merge/packages/util.CLI_VERSION={{ .Env.CLI_VERSION }} env: - CGO_ENABLED=0 binary: infisical + ldflags: -X github.com/Infisical/infisical-merge/packages/util.CLI_VERSION={{ .Version }} + flags: + - -trimpath goos: - freebsd - linux @@ -67,8 +73,10 @@ release: checksum: name_template: 'checksums.txt' + snapshot: - name_template: "{{ incpatch .Version }}" + name_template: "{{ incpatch .Version }}-devel" + changelog: sort: asc filters: @@ -82,6 +90,7 @@ changelog: # - infisical # dir: "{{ dir .ArtifactPath }}" # cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/infisical/ + brews: - name: infisical tap: @@ -93,6 +102,13 @@ brews: folder: Formula homepage: "https://infisical.com" description: "The official Infisical CLI" + install: |- + bin.install infisical + bash_completion.install "completions/infisical.bash" => infisical + zsh_completion.install "completions/infisical.zsh" => "_infisical" + fish_completion.install "completions/infisical.fish" + man1.install "manpages/infisical.1.gz" + nfpms: - id: infisical package_name: infisical @@ -118,6 +134,7 @@ nfpms: dst: /usr/share/zsh/site-functions/_infisical - src: ./manpages/infisical.1.gz dst: /usr/share/man/man1/infisical.1.gz + scoop: bucket: owner: Infisical @@ -128,6 +145,7 @@ scoop: homepage: "https://infisical.com" description: "The official Infisical CLI" license: MIT + aurs: - name: infisical-bin diff --git a/cli/packages/util/constants.go b/cli/packages/util/constants.go index aaff2cb5b3..5c169f6d50 100644 --- a/cli/packages/util/constants.go +++ b/cli/packages/util/constants.go @@ -14,5 +14,5 @@ const ( ) var ( - CLI_VERSION = "v0.2.11" + CLI_VERSION = "devel" )