From 39da8e3bb5ba4ce81962d5887d7b0a7fdc99e750 Mon Sep 17 00:00:00 2001 From: kaj <40004347+KAJdev@users.noreply.github.com> Date: Thu, 13 Jul 2023 14:33:10 -0800 Subject: [PATCH] Create comfy_windows.yml --- .github/workflows/comfy_windows.yml | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/comfy_windows.yml diff --git a/.github/workflows/comfy_windows.yml b/.github/workflows/comfy_windows.yml new file mode 100644 index 00000000..ce7f1e1b --- /dev/null +++ b/.github/workflows/comfy_windows.yml @@ -0,0 +1,39 @@ +name: "Windows Release Repackaging with ZIP" + +on: + workflow_dispatch: + push: + branches: + - tauri + +jobs: + repackage_comfyui: + permissions: + contents: "write" + packages: "write" + pull-requests: "read" + runs-on: ubuntu-latest + steps: + - shell: bash + run: | + sudo apt-get update + sudo apt-get install -y p7zip-full + sudo apt-get install -y zip + + wget https://github.com/comfyanonymous/ComfyUI/releases/download/latest/ComfyUI_windows_portable_nvidia_cu118_or_cpu.7z + + 7z x ComfyUI_windows_portable_nvidia_cu118_or_cpu.7z -o ComfyUI_windows_portable + + rm ComfyUI_windows_portable_nvidia_cu118_or_cpu.7z + + cd ComfyUI_windows_portable + + zip -r ComfyUI_windows_portable.zip ComfyUI + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ComfyUI_windows_portable.zip + tag: "latest" + overwrite: true