diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 408a21a..cdcb262 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 +