[0.16.0] llama.cpp backend paths #15
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: | |
| branches: | |
| - main | |
| paths: | |
| - "pyproject.toml" | |
| jobs: | |
| publish-node: | |
| name: Publish Custom Node to registry | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - name: Detect version change | |
| id: version | |
| run: | | |
| current="$(grep -oP '^\s*version\s*=\s*["'\'']\K[^"'\'']+' pyproject.toml | head -n1)" | |
| if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| echo "Manual dispatch, publishing version $current" | |
| exit 0 | |
| fi | |
| previous="$(git show HEAD^:pyproject.toml 2>/dev/null | grep -oP '^\s*version\s*=\s*["'\'']\K[^"'\'']+' | head -n1 || true)" | |
| echo "previous=$previous current=$current" | |
| if [ "$current" != "$previous" ]; then | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "changed=false" >> "$GITHUB_OUTPUT" | |
| echo "Version unchanged, skipping publish." | |
| fi | |
| - name: Publish Custom Node | |
| if: steps.version.outputs.changed == 'true' | |
| uses: Comfy-Org/publish-node-action@main | |
| with: | |
| personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} |