From d46af63e99b60eb7256e1398d22cc15b36eb3117 Mon Sep 17 00:00:00 2001 From: Mohsin Zaidi <2236875+smrz2001@users.noreply.github.com> Date: Mon, 1 Jul 2024 19:34:51 -0400 Subject: [PATCH] fix: homebrew support --- .github/workflows/update-homebrew.yml | 6 +++--- ci-scripts/package.sh | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-homebrew.yml b/.github/workflows/update-homebrew.yml index b12ec2ebf..64bacb775 100644 --- a/.github/workflows/update-homebrew.yml +++ b/.github/workflows/update-homebrew.yml @@ -2,12 +2,14 @@ name: Update Homebrew Formula on: release: - types: [released] workflow_dispatch: jobs: update-homebrew-formula: runs-on: ubuntu-latest + if: ${{ github.event.action == 'released' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Get Latest Release id: release @@ -40,5 +42,3 @@ jobs: git diff git commit -m "Update rust-ceramic formula to ${{ steps.release.outputs.VERSION }}" # git push - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/ci-scripts/package.sh b/ci-scripts/package.sh index 2be3640a9..7252358bd 100755 --- a/ci-scripts/package.sh +++ b/ci-scripts/package.sh @@ -82,10 +82,9 @@ echo "Building artifacts for "$TARGET cargo build --release --locked --target $TARGET - if [ "$EXT" = "bin" ]; then echo "Compressing package for $TARGET" - tar -cvzf $ARTIFACTS_DIR/ceramic-one_$TARGET.tar.gz $BIN_DIR/ceramic-one + tar -cvzf ceramic-one_$TARGET.tar.gz -C $BIN_DIR ceramic-one else echo "Building package for $TARGET" fpm --fpm-options-file $CONFIG_FILE -C $BIN_DIR -v $PKG_VERSION -p $OUT_PATH ceramic-one=$INSTALL_DIR/ceramic-one