diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index f8f55c2b8d..748b9c692b 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -50,18 +50,21 @@ jobs: touch "${ARTIFACTS_DIR_NAME}/llm_demo/executorch.aar" upload-release-aar: - name: Upload AAR to RC if ciflow/android/release tag is present + name: upload-release-aar needs: build-aar if: ${{ startsWith(github.ref, 'refs/tags/ciflow/android/release') }} runs-on: ubuntu-22.04 timeout-minutes: 10 - run: | - wget https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/llm_demo/executorch.aar + steps: + - name: Upload AAR to RC if ciflow/android/release tag is present + shell: bash + run: | + wget https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/llm_demo/executorch.aar - pip install awscli==1.32.18 - AWS_CMD="aws s3 cp --dryrun" - VERSION_NAME="$(date -f "%Y%m%d")" - ${AWS_CMD} executorch.aar s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar --acl public-read + pip install awscli==1.32.18 + AWS_CMD="aws s3 cp --dryrun" + VERSION_NAME="$(date -f "%Y%m%d")" + ${AWS_CMD} executorch.aar s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar --acl public-read # Running Android emulator directly on the runner and not using Docker run-emulator: