diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 29513cac3e..b68ec56a79 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -116,3 +116,22 @@ jobs: inputs: "${{ steps.meta.outputs.tags }}" images: "${{ steps.image.outputs.ID }}-amd64, ${{ steps.image.outputs.ID }}-arm64" push: true + + - name: Extract assets + if: startsWith(github.ref, 'refs/tags/') + run: | + docker cp $(docker create ${{ steps.image.outputs.ID }}-amd64):/usr/local/bin/geth /geth_linux + docker cp $(docker create ${{ steps.image.outputs.ID }}-arm64):/usr/local/bin/geth /geth_linux_arm64 + + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + draft: true + prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'rc') }} + files: | + /geth_linux + /geth_linux_arm64 + body: | + **Changes:** + $(git log --pretty=format:"%h %s" ${{ github.ref }}^..${{ github.ref }})