From fef44038c6524ac235052e651be0756ada01f95e Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Wed, 2 Oct 2024 07:47:38 +0800 Subject: [PATCH 1/2] chore(publish): Add Github Action for Publishing to Comfy Registry (#2) Co-authored-by: snomiao --- .github/workflows/publish.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a8719ae --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Publish to Comfy registry +on: + workflow_dispatch: + push: + branches: + - main + - master + paths: + - "pyproject.toml" + +jobs: + publish-node: + name: Publish Custom Node to registry + runs-on: ubuntu-latest + # if this is a forked repository. Skipping the workflow. + if: github.event.repository.fork == false + steps: + - name: Check out code + uses: actions/checkout@v4 + - 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.REGISTRY_ACCESS_TOKEN }} From a590f1877c65fd17d0b4c5371fc150953d3595ed Mon Sep 17 00:00:00 2001 From: guyaton Date: Tue, 1 Oct 2024 19:57:14 -0400 Subject: [PATCH 2/2] Update pyproject.toml (#3) * Update pyproject.toml * add publish action --- .github/workflows/publish_action.yml | 21 +++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish_action.yml diff --git a/.github/workflows/publish_action.yml b/.github/workflows/publish_action.yml new file mode 100644 index 0000000..60f3954 --- /dev/null +++ b/.github/workflows/publish_action.yml @@ -0,0 +1,21 @@ +name: Publish to Comfy registry +on: + workflow_dispatch: + push: + branches: + - main + - master + 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 + - name: Publish Custom Node + uses: Comfy-Org/publish-node-action@main + with: + personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} ## Add your own personal access token to your Github Repository secrets and reference it here. diff --git a/pyproject.toml b/pyproject.toml index a407f1d..786b238 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,6 +9,6 @@ Repository = "https://github.com/guyaton/guy-nodes-comfyui" # Used by Comfy Registry https://comfyregistry.org [tool.comfy] -PublisherId = "" +PublisherId = "guyaton" DisplayName = "guy-nodes-comfyui" Icon = ""