Skip to content

Commit

Permalink
update github-actions and goreleaser configs to resolve deprecations/…
Browse files Browse the repository at this point in the history
…changes
  • Loading branch information
joemiller committed Apr 10, 2021
1 parent 5787602 commit 19723b6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ jobs:
- name: install golangci-lint
run: |
mkdir -p "$HOME/bin"
# TODO: remove golangci-lint pin when release issue is fixed: https://github.com/golangci/golangci-lint/issues/1157
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b "$HOME/bin" v1.26.0
echo "::add-path::$HOME/bin"
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b "$HOME/bin"
echo "$HOME/bin" >> $GITHUB_PATH
shell: bash # force windows to use git-bash for access to curl

- name: install goreleaser
Expand Down Expand Up @@ -101,7 +100,10 @@ jobs:
- name: install release deps
run: |
brew install goreleaser/tap/goreleaser
# install goreleaser binary directly, don't use brew because brew will bring in its own
# version of go which will cause issues with the version installed by the 'setup-go' action:
curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | bash -s -- -b /usr/local/bin
brew install FiloSottile/musl-cross/musl-cross
- run: make snapshot
Expand Down Expand Up @@ -148,7 +150,10 @@ jobs:
- name: install release deps
run: |
brew install goreleaser/tap/goreleaser
# install goreleaser binary directly, don't use brew because brew will bring in its own
# version of go which will cause issues with the version installed by the 'setup-go' action:
curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | bash -s -- -b /usr/local/bin
brew install FiloSottile/musl-cross/musl-cross
- name: run autotag to increment version
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ archives:
brews:
- ids:
- archives
github:
tap:
owner: joemiller
name: homebrew-taps
commit_author:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,4 @@ TODO
* ci/cd:
* [x] `sign` checksum.txt and assets in goreleaser.yaml GPG key
* [x] apple `codesign` the macos binaries
* [ ] linux tests, figure out how to test dbus secret-service in headless CI. probably need a stub to connect to Dbus and provide the 'prompt' service
* [ ] linux tests, figure out how to test dbus secret-service in headless CI. probably need a stub to connect to Dbus and provide the 'prompt' service

0 comments on commit 19723b6

Please sign in to comment.