Skip to content

Commit

Permalink
Add sui-data-ingestion binary to release process (#15262)
Browse files Browse the repository at this point in the history
## Description 
Add `sui-data-ingestion` binary to release process

## Test Plan 
Testing via my branch
  • Loading branch information
ebmifa authored Dec 7, 2023
1 parent 5a1ac17 commit 0cebf88
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Configure AWS credentials
if: ${{ env.TAG_NAME != 'main' }}
uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838 # pin@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -61,6 +62,7 @@ jobs:
ref: ${{ env.sui_tag }}

- name: Setup caching
if: ${{ env.sui_tag != 'main' }}
uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths

- name: Install nexttest (Windows)
Expand Down Expand Up @@ -106,6 +108,7 @@ jobs:
mv ./target/release/sui-faucet ./target/release/sui-faucet-${os_type}
mv ./target/release/sui-test-validator ./target/release/sui-test-validator-${os_type}
mv ./target/release/sui-indexer ./target/release/sui-indexer-${os_type}
mv ./target/release/sui-data-ingestion ./target/release/sui-data-ingestion-${os_type}
mv ./external-crates/move/target/release/move-analyzer ./external-crates/move/target/release/move-analyzer-${os_type}
tar -cvzf ./target/release/sui-${{ env.sui_tag }}-${os_type}.tgz ./target/release/sui*-${os_type}* ./external-crates/move/target/release/move-analyzer-${os_type}
[[ ${{ env.sui_tag }} == *"mainnet"* ]] && aws s3 cp ./target/release/sui-${{ env.sui_tag }}-${os_type}.tgz s3://sui-releases/releases/sui-${{ env.sui_tag }}-${os_type}.tgz || true
Expand All @@ -123,6 +126,7 @@ jobs:
mv ./target/release/sui-faucet.exe ./target/release/sui-faucet-${os_type}.exe
mv ./target/release/sui-test-validator.exe ./target/release/sui-test-validator-${os_type}.exe
mv ./target/release/sui-indexer.exe ./target/release/sui-indexer-${os_type}.exe
mv ./target/release/sui-data-ingestion.exe ./target/release/sui-data-ingestion-${os_type}.exe
mv ./external-crates/move/target/release/move-analyzer.exe ./external-crates/move/target/release/move-analyzer-${os_type}.exe
tar -cvzf ./target/release/sui-${{ env.sui_tag }}-${os_type}.tgz ./target/release/sui*-${os_type}* ./external-crates/move/target/release/move-analyzer-${os_type}.exe
[[ ${{ env.sui_tag }} == *"mainnet"* ]] && aws s3 cp ./target/release/sui-${{ env.sui_tag }}-${os_type}.tgz s3://sui-releases/releases/sui-${{ env.sui_tag }}-${os_type}.tgz || true
Expand All @@ -147,11 +151,11 @@ jobs:
update-homebrew-formula:
needs: release-build
runs-on: ubuntu-latest
if: ${{ contains(github.event.inputs.sui_tag, 'mainnet') }}
if: ${{ contains(github.ref, 'mainnet') }}
steps:
# Checkout MystenLabs/homebrew-tap
- name: Checkout Target Repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: MystenLabs/homebrew-tap
# @john's PAT, needs to be rotated jan 5 2024
Expand Down

0 comments on commit 0cebf88

Please sign in to comment.