Skip to content

Commit 7928c09

Browse files
committed
Fix YAML syntax error in release workflow
Replace heredoc with printf statements to avoid YAML parsing issues with markdown code blocks containing backticks.
1 parent 3731146 commit 7928c09

2 files changed

Lines changed: 41 additions & 64 deletions

File tree

.github/workflows/release.yml

Lines changed: 40 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -107,69 +107,46 @@ jobs:
107107
CHANGES=$(git log --pretty=format:"- %s" ${LAST_TAG}..HEAD)
108108
fi
109109
110-
# Create release notes
111-
cat > RELEASE_NOTES.md <<'NOTES_EOF'
112-
## SwiftMac VERSION_PLACEHOLDER
113-
114-
**Apple Silicon Release** (arm64)
115-
116-
### Requirements
117-
118-
- macOS with Apple Silicon (M1, M2, M3, M4, or newer)
119-
- Emacspeak installed
120-
121-
### Installation
122-
123-
**1. Download and extract:**
124-
125-
```bash
126-
curl -L https://github.com/robertmeta/swiftmac/releases/download/vVERSION_PLACEHOLDER/swiftmac-VERSION_PLACEHOLDER.tar.gz | tar xz
127-
cd swiftmac
128-
```
129-
130-
**2. Install to Emacspeak:**
131-
132-
```bash
133-
# Copy binary and frameworks
134-
cp -rf swiftmac ogg.framework vorbis.framework $EMACSPEAK_DIR/servers/
135-
136-
# Copy support scripts
137-
cp cloud-swiftmac log-swiftmac $EMACSPEAK_DIR/servers/
138-
139-
# Copy voice configuration
140-
cp swiftmac-voices.el $EMACSPEAK_DIR/lisp/
141-
142-
# Update .servers file
143-
cd $EMACSPEAK_DIR/servers
144-
echo "swiftmac" >> .servers
145-
echo "log-swiftmac" >> .servers
146-
echo "cloud-swiftmac" >> .servers
147-
sort -u .servers -o .servers
148-
```
149-
150-
**3. Configure Emacs:**
151-
152-
Add to your Emacs init file:
153-
154-
```emacs-lisp
155-
(setenv "EMACSPEAK_DIR" "/path/to/.emacspeak") ; Set your path
156-
(load-file "/path/to/.emacspeak/lisp/emacspeak-setup.el")
157-
(dtk-select-server "swiftmac")
158-
```
159-
160-
### Changes
161-
162-
CHANGES_PLACEHOLDER
163-
164-
---
165-
166-
For more information, see the [full documentation](https://github.com/robertmeta/swiftmac).
167-
NOTES_EOF
168-
169-
# Substitute variables
170-
sed -i.bak "s/VERSION_PLACEHOLDER/$VERSION/g" RELEASE_NOTES.md
171-
sed -i.bak "s|CHANGES_PLACEHOLDER|$CHANGES|g" RELEASE_NOTES.md
172-
rm RELEASE_NOTES.md.bak
110+
# Create release notes using printf to avoid heredoc YAML issues
111+
{
112+
printf "## SwiftMac %s\n\n" "$VERSION"
113+
printf "**Apple Silicon Release** (arm64)\n\n"
114+
printf "### Requirements\n\n"
115+
printf "- macOS with Apple Silicon (M1, M2, M3, M4, or newer)\n"
116+
printf "- Emacspeak installed\n\n"
117+
printf "### Installation\n\n"
118+
printf "**1. Download and extract:**\n\n"
119+
printf '```bash\n'
120+
printf "curl -L https://github.com/robertmeta/swiftmac/releases/download/v%s/swiftmac-%s.tar.gz | tar xz\n" "$VERSION" "$VERSION"
121+
printf "cd swiftmac\n"
122+
printf '```\n\n'
123+
printf "**2. Install to Emacspeak:**\n\n"
124+
printf '```bash\n'
125+
printf "# Copy binary and frameworks\n"
126+
printf 'cp -rf swiftmac ogg.framework vorbis.framework $EMACSPEAK_DIR/servers/\n\n'
127+
printf "# Copy support scripts\n"
128+
printf 'cp cloud-swiftmac log-swiftmac $EMACSPEAK_DIR/servers/\n\n'
129+
printf "# Copy voice configuration\n"
130+
printf 'cp swiftmac-voices.el $EMACSPEAK_DIR/lisp/\n\n'
131+
printf "# Update .servers file\n"
132+
printf 'cd $EMACSPEAK_DIR/servers\n'
133+
printf 'echo "swiftmac" >> .servers\n'
134+
printf 'echo "log-swiftmac" >> .servers\n'
135+
printf 'echo "cloud-swiftmac" >> .servers\n'
136+
printf 'sort -u .servers -o .servers\n'
137+
printf '```\n\n'
138+
printf "**3. Configure Emacs:**\n\n"
139+
printf "Add to your Emacs init file:\n\n"
140+
printf '```emacs-lisp\n'
141+
printf '(setenv "EMACSPEAK_DIR" "/path/to/.emacspeak") ; Set your path\n'
142+
printf '(load-file "/path/to/.emacspeak/lisp/emacspeak-setup.el")\n'
143+
printf '(dtk-select-server "swiftmac")\n'
144+
printf '```\n\n'
145+
printf "### Changes\n\n"
146+
printf "%s\n\n" "$CHANGES"
147+
printf -- "---\n\n"
148+
printf "For more information, see the [full documentation](https://github.com/robertmeta/swiftmac).\n"
149+
} > RELEASE_NOTES.md
173150
174151
echo "Release notes created"
175152
cat RELEASE_NOTES.md

Sources/SwiftMacPackage/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import OggDecoder
1616
#else
1717
let debugLogger = Logger() // No-Op
1818
#endif
19-
let version = "4.3.2"
19+
let version = "4.3.3"
2020
let name = "swiftmac"
2121
var ss = StateStore() // just create new one to reset
2222

0 commit comments

Comments
 (0)