diff --git a/.github/workflows/publish_action.yml b/.github/workflows/publish_action.yml new file mode 100644 index 0000000..8696711 --- /dev/null +++ b/.github/workflows/publish_action.yml @@ -0,0 +1,24 @@ +name: Publish to Comfy registry +on: + workflow_dispatch: + push: + branches: + - main + paths: + - "pyproject.toml" + +permissions: + issues: write + +jobs: + publish-node: + name: Publish Custom Node to registry + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'WASasquatch' }} + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Publish Custom Node + uses: Comfy-Org/publish-node-action@v1 + 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/README.md b/README.md index 8d23c5f..fd9e5b1 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # ComfyUI Content Viewer -A versatile ComfyUI custom node that renders HTML, SVG, Markdown, and code content in a secure embedded iframe viewer with full editing, download, and list support. - ![Content Viewer](https://img.shields.io/badge/ComfyUI-Content_Viewer-blue) ![License](https://img.shields.io/badge/License-MIT-green) +A versatile ComfyUI custom node that renders HTML, SVG, Markdown, and code content in a secure embedded iframe viewer with full editing, download, and list support. + ## Features ### Content Rendering @@ -38,20 +38,20 @@ A versatile ComfyUI custom node that renders HTML, SVG, Markdown, and code conte - **Sandboxed iframe** - Content runs in isolated sandbox without access to parent page - **No same-origin** - Iframe cannot access ComfyUI's JavaScript context or localStorage + ## Installation -### Via ComfyUI Manager -Search for "Content Viewer" in ComfyUI Manager and install. +- **Option A (git clone)** + - Clone this repo into: + - `ComfyUI/custom_nodes/ComfyUI_Viewer` -### Manual Installation -Clone this repository into your ComfyUI `custom_nodes` folder: +- **Option B (Manager)** + - Open Manager and install **ComfyUI_Viewer** -```bash -cd ComfyUI/custom_nodes -git clone https://github.com/WASasquatch/ComfyUI_Viewer -``` - -Restart ComfyUI. +- **Option C (zip)** + - Download the repo as a zip. + - Extract it to: + - `ComfyUI/custom_nodes/ComfyUI_Viewer` ## Usage