Skip to content

Commit

Permalink
chore: add homebrew update job
Browse files Browse the repository at this point in the history
  • Loading branch information
angelplusultra committed Dec 27, 2024
1 parent 073b6ab commit 6cef41b
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
# asset_name: jobshell-macos-aarch64
# asset_content_type: application/octet-stream
publish-to-cargo:
# needs: [release]
needs: [release]
runs-on: macos-latest
steps:
# Step 1: Checkout the repository
Expand All @@ -161,3 +161,27 @@ jobs:
run: cargo publish --allow-dirty
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
update-homebrew-tap:
needs: [release]
runs-on: macos-latest

steps:
# Step 1: Parse the version from the tag
- name: Extract version
id: extract_version
run: |
TAG_NAME=${GITHUB_REF##*/}
VERSION=${TAG_NAME#v}
echo "VERSION=${VERSION}" >> $GITHUB_ENV
# # Step 2: Clone the homebrew-jobshell repository
# - name: Clone homebrew-jobshell repository
# run: |
# git clone https://${{ secrets.GITHUB_TOKEN }}@github.com/angelplusultra/homebrew-jobshell.git
# cd homebrew-jobshell
#
# # Step 3: Run the update script in the cloned repository
# - name: Run Homebrew update script
# working-directory: homebrew-jobshell
# run: ./script.sh $VERSION

0 comments on commit 6cef41b

Please sign in to comment.