diff --git a/.github/workflows/ci-geth-s3.yml b/.github/workflows/ci-geth-s3.yml index 2b1dca43f5a5..45fccd86361f 100644 --- a/.github/workflows/ci-geth-s3.yml +++ b/.github/workflows/ci-geth-s3.yml @@ -77,6 +77,18 @@ jobs: binary_name+='.exe' fi + # For linux amd64 upload the binary for internal testing + if [ "${{ matrix.platform }}" = "linux-amd64" ]; then + + echo "Uploading binary for internal use..." + aws s3 cp binary_name s3://iliad-geth-binaries/geth/geth-$VERSION --quiet + + # Update manifest file for linux-amd64 builds only + aws s3 cp s3://iliad-geth-binaries/geth/manifest.txt manifest.txt --quiet || touch manifest.txt + echo $ARCHIVE_NAME >> manifest.txt + aws s3 cp manifest.txt s3://iliad-geth-binaries/geth/manifest.txt --quiet + fi + mkdir $FOLDER_NAME mv $binary_name $FOLDER_NAME/ @@ -96,17 +108,6 @@ jobs: exit 1 fi - if [ "${{ matrix.platform }}" = "linux-amd64" ]; then - - echo "Uploading binary for internal use..." - aws s3 cp binary_name s3://iliad-geth-binaries/geth/geth-$VERSION --quiet - - # Update manifest file for linux-amd64 builds only - aws s3 cp s3://iliad-geth-binaries/geth/manifest.txt manifest.txt --quiet || touch manifest.txt - echo $ARCHIVE_NAME >> manifest.txt - aws s3 cp manifest.txt s3://iliad-geth-binaries/geth/manifest.txt --quiet - fi - cleanup: runs-on: ubuntu-latest needs: build_and_push