Publish to Comfy registry #7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish to Comfy registry | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| permissions: | |
| issues: write | |
| jobs: | |
| publish-node: | |
| name: Publish Custom Node to registry | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Extract version from tag | |
| id: extract_version | |
| run: | | |
| # Extract version from tag (remove 'v' prefix) | |
| VERSION=${GITHUB_REF#refs/tags/v} | |
| echo "VERSION=$VERSION" >> $GITHUB_OUTPUT | |
| echo "Extracted version: $VERSION" | |
| - name: Update version in pyproject.toml | |
| run: | | |
| VERSION=${{ steps.extract_version.outputs.VERSION }} | |
| sed -i "s/^version = .*/version = \"$VERSION\"/" pyproject.toml | |
| echo "Updated pyproject.toml with version $VERSION" | |
| cat pyproject.toml | |
| - name: Publish Custom Node | |
| uses: Comfy-Org/publish-node-action@v1 | |
| with: | |
| personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} |