Skip to content

Commit

Permalink
chore: upgrade release actions and remove deprecated goreleaser optio…
Browse files Browse the repository at this point in the history
…ns (#4623)
  • Loading branch information
Иван Vandot authored Apr 23, 2024
1 parent a9215e0 commit 7bc132d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
printf ${{ secrets.DOCKERHUB_PASSWORD }} | docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
printf ${{ secrets.QUAY_PASSWORD }} | docker login --username ${{ secrets.QUAY_USERNAME }} quay.io --password-stdin
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Import GPG key
run: |
echo "$GPG_PRIVATE_KEY" | gpg --import --passphrase "$GPG_PASSPHRASE" --batch --allow-secret-key-import
Expand All @@ -38,7 +38,7 @@ jobs:
echo "BEE_API_VERSION=$(grep '^ version:' openapi/Swarm.yaml | awk '{print $2}')" >> $GITHUB_ENV
echo "BEE_DEBUG_API_VERSION=$(grep '^ version:' openapi/SwarmDebug.yaml | awk '{print $2}')" >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean --timeout 1h
Expand Down
8 changes: 2 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ signs:
archives:
-
id: scoop
rlcp: true
builds:
- windows
name_template: "{{ tolower .ProjectName }}-{{ tolower .Os }}-{{ tolower .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
Expand All @@ -145,15 +144,13 @@ archives:
-
name_template: "{{ tolower .ProjectName }}-{{ tolower .Os }}-{{ tolower .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: binary
rlcp: true
builds:
- linux
- windows
- darwin-amd64
- darwin-arm64
-
id: homebrew-amd64
rlcp: true
builds:
- darwin-amd64
name_template: "{{ tolower .ProjectName }}-{{ tolower .Os }}-{{ tolower .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
Expand All @@ -165,7 +162,6 @@ archives:
- README.md
-
id: homebrew-arm64
rlcp: true
builds:
- darwin-arm64
name_template: "{{ tolower .ProjectName }}-{{ tolower .Os }}-{{ tolower .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
Expand Down Expand Up @@ -252,7 +248,7 @@ publishers:

scoops:
- url_template: "https://github.com/ethersphere/bee/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
bucket:
repository:
owner: ethersphere
name: scoop
token: "{{ .Env.SCOOP_PAT }}"
Expand Down Expand Up @@ -288,7 +284,7 @@ scoops:

brews:
- name: swarm-bee
tap:
repository:
owner: ethersphere
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_PAT }}"
Expand Down

0 comments on commit 7bc132d

Please sign in to comment.