From 688aa856ab29cab195893b38f258e21a4cb51153 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Fri, 18 Nov 2022 00:35:16 -0500 Subject: [PATCH] fix cloud smith upload to cd into dist --- .github/workflows/release_build.yml | 2 +- upload_to_cloudsmith.sh => cli/upload_to_cloudsmith.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename upload_to_cloudsmith.sh => cli/upload_to_cloudsmith.sh (98%) diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 4d6d49a4aa..aea82a9d2b 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -35,7 +35,7 @@ jobs: - uses: actions/setup-python@v4 - run: pip install --upgrade cloudsmith-cli - name: Publish to CloudSmith - run: sh upload_to_cloudsmith.sh + run: sh cli/upload_to_cloudsmith.sh env: CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} diff --git a/upload_to_cloudsmith.sh b/cli/upload_to_cloudsmith.sh similarity index 98% rename from upload_to_cloudsmith.sh rename to cli/upload_to_cloudsmith.sh index ca4f2ca7c1..ffba59f1b6 100755 --- a/upload_to_cloudsmith.sh +++ b/cli/upload_to_cloudsmith.sh @@ -1,3 +1,4 @@ +cd dist for i in *.apk; do [ -f "$i" ] || break cloudsmith push alpine infisical/infisical-cli/alpine/any-version $i