Skip to content

Commit

Permalink
[sui-releases]: push sui binaries archives to s3 (MystenLabs#14891)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebmifa authored Nov 20, 2023
1 parent 504697b commit ac3dc70
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@ jobs:
timeout-minutes: 80
strategy:
matrix:
os: [windows-ghcloud, ubuntu-ghcloud, macos-latest-xl, macos-arm64-self-hosted]
os: [ windows-ghcloud, ubuntu-ghcloud, macos-latest-xl, macos-arm64-self-hosted ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838 # pin@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2

- name: Clean up tag name ${{ env.TAG_NAME }}
shell: bash
run: |
Expand Down Expand Up @@ -101,6 +108,7 @@ jobs:
mv ./target/release/sui-indexer ./target/release/sui-indexer-${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
- name: Rename binaries for Windows
if: ${{ env.sui_tag != 'main' && matrix.os == 'windows-ghcloud' }}
Expand All @@ -117,6 +125,7 @@ jobs:
mv ./target/release/sui-indexer.exe ./target/release/sui-indexer-${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
- name: Upload release artifacts for ${{ matrix.os }} platform
if: ${{ env.sui_tag != 'main' }}
Expand Down

0 comments on commit ac3dc70

Please sign in to comment.