Skip to content

Publish and Update Formula #4

Publish and Update Formula

Publish and Update Formula #4

Workflow file for this run

name: Publish and Update Formula
on:
release:
types: [ created ]
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/comfy-cli/
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# retrieve your distributions here
- name: pypi-publish
uses: pypa/[email protected]
update-homebrew-formula:
needs: upload-to-pypi

Check failure on line 23 in .github/workflows/publish_package.yml

View workflow run for this annotation

GitHub Actions / Publish and Update Formula

Invalid workflow file

The workflow is not valid. .github/workflows/publish_package.yml (Line: 23, Col: 12): Job 'update-homebrew-formula' depends on unknown job 'upload-to-pypi'.

Check failure on line 23 in .github/workflows/publish_package.yml

View workflow run for this annotation

GitHub Actions / Publish and Update Formula

Invalid workflow file

The workflow is not valid. .github/workflows/publish_package.yml (Line: 23, Col: 12): Job 'update-homebrew-formula' depends on unknown job 'upload-to-pypi'.
runs-on: ubuntu-latest
steps:
- name: Checkout Homebrew repo
uses: actions/checkout@v3
with:
repository: Comfy-Org/homebrew-comfy-cli
path: homebrew-comfy-cli
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Create virtual environment and update formula
run: |
python3 -m venv venv
source venv/bin/activate
pip install comfy-cli homebrew-pypi-poet
poet -f comfy-cli > Formula/comfy-cli.rb # Directly overwrite the existing file
- name: Commit and push changes
run: |
cd homebrew-comfy-cli
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git add Formula/comfy-cli.rb
git commit -m "Update comfy-cli formula"
git push