Skip to content

Commit 73d82fe

Browse files
Add Github Action for Publishing to Comfy Registry (#2)
This PR adds a Github Action (publish-node-action) that will run whenever the pyproject.toml file changes. The pyproject.toml defines the custom node version you want to publish (added in another PR). Action Required: - [x] Make sure the trigger branch (`master` or `main`) in `publish.yaml` matches the branch you want to use as the publishing branch. It will only trigger when the pyproject.toml gets updated on that branch. - [x] Create an api key on the Registry for publishing from Github. [Instructions](https://docs.comfy.org/registry/overview#create-an-api-key-for-publishing). - [x] Add it to your Github Repository Secrets as `REGISTRY_ACCESS_TOKEN`. More info on the [registry](https://comfyregistry.org/). Please message me on [Discord](https://discord.com/invite/comfyorg) if you have any questions!
1 parent 394b238 commit 73d82fe

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
steps:
15+
- name: Check out code
16+
uses: actions/checkout@v4
17+
- name: Publish Custom Node
18+
uses: Comfy-Org/publish-node-action@main
19+
with:
20+
## Add your own personal access token to your Github Repository secrets and reference it here.
21+
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)