chore: goreleaser workflow fix (#5298)

Use the automatically provided GITHUB_TOKEN secret.

Currently only has the default permissions which should let
it read the tag as needed.

Commented permissions would allow it to also automatically write
a github release, but will see if it works without that for now
for minimimum change.
This commit is contained in:
Tim Myers 2022-09-06 22:44:21 -06:00 committed by GitHub
parent 488121f669
commit e2301387eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,10 @@
name: Release
# Uncomment the following to let goreleaser automatically
# create a GitHub release when a tag is pushed.
# permissions:
# contents: write
on:
push:
branches-ignore:
@ -35,7 +40,7 @@ jobs:
run: |
make release
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.prepare.outputs.tag_name }}
DOCKER_USERNAME: ${{ secrets.DOCKERHUB }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }}

View File

@ -204,7 +204,7 @@ git-submodules:
@git submodule update --quiet --init --recursive --force || true
PACKAGE_NAME := github.com/ledgerwatch/erigon
GOLANG_CROSS_VERSION ?= v1.18.1
GOLANG_CROSS_VERSION ?= v1.18.5
.PHONY: release-dry-run
release-dry-run: git-submodules