mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Move release to it's own job
This commit is contained in:
parent
4c77c2bc05
commit
9217c9e6c5
1 changed files with 17 additions and 3 deletions
20
.github/workflows/docker.yml
vendored
20
.github/workflows/docker.yml
vendored
|
|
@ -117,15 +117,29 @@ jobs:
|
|||
images: "${{ steps.image.outputs.ID }}-amd64, ${{ steps.image.outputs.ID }}-arm64"
|
||||
push: true
|
||||
|
||||
release:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
needs: build
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Extract image
|
||||
id: image
|
||||
run: |
|
||||
echo "ID=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- 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
|
||||
# The --platform are not really needed here, but it removes the warning
|
||||
docker cp $(docker create --platform=linux/amd64 ${{ steps.image.outputs.ID }}-amd64):/usr/local/bin/geth ./geth_linux
|
||||
docker cp $(docker create --platform=linux/arm64 ${{ 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') }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue