Skip to content

Commit

Permalink
fix: homebrew support
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Jul 1, 2024
1 parent 3379fa7 commit d46af63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update-homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
3 changes: 1 addition & 2 deletions ci-scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d46af63

Please sign in to comment.