mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
run release workflow on correct triggers
This commit is contained in:
parent
daf8ac4eeb
commit
d09aea6456
1 changed files with 3 additions and 6 deletions
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
|
@ -2,10 +2,10 @@ name: Release
|
|||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
tags:
|
||||
- "v1.*"
|
||||
branches:
|
||||
- "release/v1.*"
|
||||
|
||||
jobs:
|
||||
extract-version:
|
||||
|
|
@ -125,7 +125,6 @@ jobs:
|
|||
name: Draft Release
|
||||
needs: [extract-version, linux-intel, linux-arm]
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
env:
|
||||
VERSION: ${{ needs.extract-version.outputs.VERSION }}
|
||||
permissions:
|
||||
|
|
@ -134,7 +133,6 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # This is necessary for generating the changelog
|
||||
fetch-tags: true # Ensure tags are fetched
|
||||
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
|
|
@ -189,7 +187,7 @@ jobs:
|
|||
# We just need to ensure gh release uses it correctly
|
||||
|
||||
body=$(cat <<- 'ENDBODY'
|
||||

|
||||

|
||||
|
||||
## Summary
|
||||
|
||||
|
|
@ -259,7 +257,6 @@ jobs:
|
|||
# Using --target with GITHUB_SHA ensures we create the release at the right commit
|
||||
echo "$body" | gh release create "$RELEASE_TAG" \
|
||||
--draft \
|
||||
--target "${{ github.sha }}" \
|
||||
--title "Bera-Geth $RELEASE_TAG" \
|
||||
-F - \
|
||||
"${assets[@]}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue