Skip to content

Commit

Permalink
Update publish_package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
james03160927 authored May 9, 2024
1 parent cc485ed commit 08d198c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
repository: 'Comfy-Org/homebrew-comfy-cli'
token: ${{ secrets.COMMITTER_TOKEN }}
path: 'homebrew-repo'

- name: Extract version from tag
id: get_version
Expand All @@ -57,6 +61,22 @@ jobs:
source venv/bin/activate
poet comfy-cli==$VERSION > comfy-cli.rb
- name: Commit and Push Formula
run: |
mv comfy-cli.rb homebrew-repo/Formula/
cd homebrew-repo
git config user.name github-actions
git config user.email [email protected]
git add Formula/comfy-cli.rb
git commit -m "Update comfy-cli formula to version $VERSION"
git push
env:
GIT_COMMITTER_NAME: github-actions
GIT_COMMITTER_EMAIL: [email protected]
GIT_AUTHOR_NAME: github-actions
GIT_AUTHOR_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

test-homebrew-installation:
name: Test Comfy CLI Installation via homebrew
needs: publish-homebrew-tap # This job runs after build-n-publish completes successfully
Expand Down

0 comments on commit 08d198c

Please sign in to comment.