Skip to content

Commit

Permalink
Test.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Dec 25, 2024
1 parent 1c9c040 commit 8848eb7
Showing 1 changed file with 32 additions and 37 deletions.
69 changes: 32 additions & 37 deletions .github/workflows/debug_all.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,35 @@
name: Build All Platforms Debug

name: Test Release Notes Update
on:
pull_request:
branches:
- 'main'
paths-ignore:
- '.prettierrc'
- '.eslintrc.json'
- '.prettierignore'
- 'README.md'
- 'husky/**'
- '.vscode/**'
- 'scripts/**'
- '.gitignore'
- 'todesktop.json'
push:
branches:
- 'main'
paths-ignore:
- '.prettierrc'
- '.eslintrc.json'
- '.prettierignore'
- 'README.md'
- 'husky/**'
- '.vscode/**'
- 'scripts/**'
- '.gitignore'
- 'todesktop.json'
workflow_dispatch:
inputs:
tag:
description: 'Tag to update (e.g., v0.4.3)'
required: true

jobs:
build-windows-debug-all:
secrets: inherit
uses: ./.github/workflows/debug_windows.yml
build-apple-debug-all:
secrets: inherit
uses: ./.github/workflows/debug_macos.yml
build-linux-debug-all:
secrets: inherit
uses: ./.github/workflows/debug_linux.yml
update-release:
runs-on: ubuntu-latest
steps:
- name: Update Release Notes
env:
GH_TOKEN: ${{ github.token }}
BUILD_ID: "241225xbshgcqlj" # Hardcoded for testing
run: |
# First get existing release notes
EXISTING_NOTES=$(gh release view ${{ inputs.tag }} --json body -q .body)
# Create download links section
DOWNLOAD_LINKS="### Download Latest
Mac (Apple Silicon): https://download.comfy.org/mac/dmg/arm64
Windows: https://download.comfy.org/windows/nsis/x64

<details>
<summary>Artifacts of current release</summary>

Mac (Apple Silicon): https://download.comfy.org/${BUILD_ID}/mac/dmg/arm64
Windows: https://download.comfy.org/${BUILD_ID}/windows/nsis/x64
</details>"

# Combine and update
UPDATED_NOTES="${EXISTING_NOTES}${DOWNLOAD_LINKS}"
gh release edit ${{ inputs.tag }} --notes "$UPDATED_NOTES"

0 comments on commit 8848eb7

Please sign in to comment.