Skip to content

Commit d196295

Browse files
authored
Merge pull request #2 from ComfyNodePRs/publish
Add Github Action for Publishing to Comfy Registry
2 parents beb1599 + 2c1d14c commit d196295

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish to Comfy registry
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "pyproject.toml"
9+
10+
jobs:
11+
publish-node:
12+
name: Publish Custom Node to registry
13+
runs-on: ubuntu-latest
14+
# if this is a forked repository. Skipping the workflow.
15+
if: github.event.repository.fork == false
16+
steps:
17+
- name: Check out code
18+
uses: actions/checkout@v4
19+
- name: Publish Custom Node
20+
uses: Comfy-Org/publish-node-action@main
21+
with:
22+
## Add your own personal access token to your Github Repository secrets and reference it here.
23+
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)