-
Notifications
You must be signed in to change notification settings - Fork 8
32 lines (31 loc) · 1.03 KB
/
Copy pathpublish_to_comfy.yml
File metadata and controls
32 lines (31 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Publish to Comfy registry
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "pyproject.toml"
# only run when tags are pushed
# tags:
# - '*'
jobs:
publish-node:
name: Publish Custom Node to registry
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Check if Node Exists in Registry
run: |
curl -s -X GET "https://registry.comfy.org/nodes/ymc-node-suite-comfyui" -H "Authorization: Bearer ${{ secrets.COMFY_REGISTRY_TOKEN }}" \
| jq '.claimed_by // empty' > claimed_status.txt
if [ -s claimed_status.txt ]; then
echo "Node already exists and is claimed. Skipping publish step."
exit 0
fi
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@main
with:
## Add your own personal access token to your Github Repository secrets and reference it here.
personal_access_token: ${{ secrets.COMFY_REGISTRY_TOKEN }}