diff --git a/.github/.goreleaser.yml b/.github/.goreleaser.yml index a79c3e2..8028c09 100644 --- a/.github/.goreleaser.yml +++ b/.github/.goreleaser.yml @@ -43,7 +43,7 @@ release: ## Build from source ``` - $ go install github.com/0xsequence/czip/cmd/czip-compressor + $ go install github.com/0xsequence/czip/cmd/czip-compressor@latest ``` ## Download binaries @@ -59,7 +59,7 @@ brews: - name: czip-compressor ids: - czip-compressor - tap: + repository: owner: 0xsequence name: homebrew-tap token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" @@ -69,4 +69,4 @@ brews: commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" homepage: "https://github.com/0xsequence/czip" description: "czip: EVM Calldata Zip" - license: "MIT" + license: "Apache-2.0" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3bed104..83bd139 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,32 +5,27 @@ on: tags: - "v*" -# on: -# push: -# branches: -# - "**" - jobs: - # goreleaser: - # runs-on: ubuntu-latest - # steps: - # - name: Checkout - # uses: actions/checkout@v3 - # with: - # fetch-depth: 0 - # - name: Set up Go - # uses: actions/setup-go@v3 - # with: - # go-version: 1.22 - # - name: Run GoReleaser - # uses: goreleaser/goreleaser-action@v3 - # with: - # distribution: goreleaser - # version: latest - # args: release -f .github/.goreleaser.yml --clean - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: 1.22 + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v5 + with: + distribution: goreleaser + version: latest + args: release -f .github/.goreleaser.yml --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} docker: runs-on: ubuntu-latest diff --git a/README.md b/README.md index 47c69b9..1023c59 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,20 @@ A companion `czip-compressor` tool is provided to compress calldata. It is a sim ## Install -TODO +``` +$ brew tap 0xsequence/tap +$ brew install czip-compressor +$ czip-compressor +``` + +or + +`$ docker run ghcr.io/0xsequence/czip-compressor` + +or + +`$ go install github.com/0xsequence/czip/compressor/cmd/czip-compressor@latest` + ## Usage