forked from nunchaku-ai/ComfyUI-nunchaku
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.09 KB
/
Copy pathpublish.yaml
File metadata and controls
33 lines (33 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Publish to Comfy registry and create a release
on:
workflow_dispatch:
inputs:
release_tag:
description: 'Release tag (e.g. v1.2.3)'
required: true
permissions:
contents: write
jobs:
publish:
name: Publish Custom Node to registry and create a release
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.release_tag }}
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Update project name for Comfy Registry
# run: |
# sed -i 's/name = "comfyui-nunchaku"/name = "ComfyUI-nunchaku"/' pyproject.toml
# echo "Updated pyproject.toml:"
# grep 'name = "ComfyUI-nunchaku"' pyproject.toml
# shell: bash
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@main
with:
personal_access_token: ${{ secrets.COMFYUI_REGISTRY_ACCESS_TOKEN }}