-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from hayden-fr/next-ui
Refactor the code structure and optimize the UI.
- Loading branch information
Showing
83 changed files
with
10,153 additions
and
10,434 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,106 @@ | ||
name: Publish to Comfy registry | ||
name: Release and Publish to Comfy registry | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "pyproject.toml" | ||
- 'pyproject.toml' | ||
|
||
jobs: | ||
publish-node: | ||
name: Publish Custom Node to registry | ||
name: Release and 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 | ||
|
||
- name: Get current version | ||
id: current_version | ||
run: | | ||
echo "version=$(cat pyproject.toml | grep 'version =' | cut -d'=' -f2 | xargs)" >> $GITHUB_OUTPUT | ||
- name: Check if tag exists | ||
id: check-tag | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const tag = `v${{ steps.current_version.outputs.version }}`; | ||
try { | ||
await github.rest.repos.getReleaseByTag({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
tag | ||
}); | ||
return true | ||
} catch (error) { | ||
console.error(error) | ||
return false | ||
} | ||
- name: Assert tag v${{ steps.current_version.outputs.version }} is not exist | ||
run: | | ||
if [ ${{ steps.check-tag.outputs.result }} == true ]; then | ||
echo "Tag exists, skipping release" | ||
exit 1 | ||
fi | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
cache: 'pnpm' | ||
|
||
- name: Build and Package | ||
run: | | ||
pnpm install | ||
pnpm run build | ||
tar -czf dist.tar.gz py/ web/ __init__.py LICENSE pyproject.toml | ||
- name: Create release draft | ||
uses: softprops/action-gh-release@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: | | ||
dist.tar.gz | ||
name: ${{ steps.current_version.outputs.version }} | ||
tag_name: v${{ steps.current_version.outputs.version }} | ||
draft: true | ||
make_latest: true | ||
|
||
- name: Prepare publish custom node to registry | ||
run: | | ||
find . -maxdepth 1 ! -name '.' ! -name 'dist.tar.gz' ! -name '.git' -exec rm -rf {} + | ||
tar -xzf dist.tar.gz | ||
rm -rf dist.tar.gz | ||
# - 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 }} | ||
# | ||
# Publish Custom Node | ||
# Copy from Comfy-Org/publish-node-action@main | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
## Add your own personal access token to your Github Repository secrets and reference it here. | ||
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} | ||
python-version: '3.10' | ||
|
||
- name: Install comfy-cli | ||
shell: bash | ||
run: | | ||
pip install comfy-cli | ||
- name: Publish Node | ||
shell: bash | ||
run: | | ||
comfy --skip-prompt --no-enable-telemetry env | ||
comfy node publish --token ${{ secrets.REGISTRY_ACCESS_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,3 +188,12 @@ Icon | |
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
# dependencies | ||
node_modules/ | ||
|
||
# dist | ||
web/ | ||
|
||
# config | ||
config/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm exec lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"endOfLine": "lf", | ||
"semi": false, | ||
"plugins": [ | ||
"prettier-plugin-organize-imports", | ||
"prettier-plugin-tailwindcss" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,48 @@ | ||
{ | ||
"cSpell.words": [ | ||
"apng", | ||
"Civitai", | ||
"ckpt", | ||
"comfyui", | ||
"FYUIKMNVB", | ||
"gguf", | ||
"gligen", | ||
"jfif", | ||
"locon", | ||
"loras", | ||
"noimage", | ||
"onnx", | ||
"rfilename", | ||
"unet", | ||
"upscaler" | ||
], | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
"cSpell.words": [ | ||
"tailwindcss", | ||
"vnode", | ||
"unref", | ||
"civitai", | ||
"huggingface", | ||
"comfyui", | ||
"ckpt", | ||
"gligen", | ||
"loras", | ||
"safetensors", | ||
"unet", | ||
"controlnet", | ||
"hypernetwork", | ||
"hypernetworks", | ||
"photomaker", | ||
"upscaler", | ||
"comfyorg", | ||
"fullname", | ||
"primevue", | ||
"maximizable", | ||
"inputgroup", | ||
"inputgroupaddon", | ||
"iconfield", | ||
"inputicon", | ||
"inputtext", | ||
"overlaybadge", | ||
"usetoast", | ||
"toastservice", | ||
"useconfirm", | ||
"confirmationservice", | ||
"confirmdialog", | ||
"popupmenu", | ||
"inplace", | ||
"contentcontainer", | ||
"itemlist", | ||
"virtualscroller" | ||
], | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"files.associations": { | ||
"*.css": "tailwindcss" | ||
}, | ||
"editor.quickSuggestions": { | ||
"strings": "on" | ||
}, | ||
"css.lint.unknownAtRules": "ignore" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.