Skip to content

Commit

Permalink
Update goreleaser config (#1038)
Browse files Browse the repository at this point in the history
* Update goreleaser config

* Update goreleaser setup workflow

* Migrate goreleaser --rm-dist flag
  • Loading branch information
godrei authored Jan 20, 2025
1 parent db60386 commit b270b89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
6 changes: 4 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

before:
hooks:
- go mod tidy
Expand Down Expand Up @@ -38,14 +40,14 @@ archives:
blobs:
- provider: gs
bucket: bitrise-cli-releases-prod
folder: /{{ .Tag }}
directory: /{{ .Tag }}
ids:
- default
- provider: s3
bucket: bitrise-cli-releases-prod
region: us-east-1
endpoint: "{{ .Env.AWS_ENDPOINT_URL }}"
folder: /
directory: /
ids:
- s3

Expand Down
12 changes: 3 additions & 9 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ step_bundles:
#!/usr/bin/env bash
set -ex
goreleaser release --snapshot --rm-dist
goreleaser release --snapshot --clean
- deploy-to-bitrise-io@2: { }

setup_repo:
Expand Down Expand Up @@ -362,14 +362,8 @@ step_bundles:
- content: |-
#!/bin/bash
set -ex
if [ "$(uname)" = "Linux" ]; then
wget -O /tmp/goreleaser.deb https://github.com/goreleaser/goreleaser/releases/download/v1.19.2/goreleaser_1.19.2_amd64.deb
sudo dpkg -i /tmp/goreleaser.deb
else
go install github.com/goreleaser/goreleaser@latest
asdf reshim golang
fi
go install github.com/goreleaser/goreleaser/v2@latest
asdf reshim golang
meta:
bitrise.io:
Expand Down

0 comments on commit b270b89

Please sign in to comment.