Skip to content

Commit e578c53

Browse files
try to fix release
1 parent fb58860 commit e578c53

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,14 @@ jobs:
5252
VERSION=${{ steps.get_version.outputs.version }}
5353
CHANGELOG_FILE="changelogs/CHANGELOG-${VERSION}.rst"
5454
if [ -f "$CHANGELOG_FILE" ]; then
55-
# Read changelog and store in output using a unique delimiter
56-
{
57-
echo "changelog<<CHANGELOG_DELIMITER_${{ github.sha }}"
58-
cat "$CHANGELOG_FILE"
59-
echo "CHANGELOG_DELIMITER_${{ github.sha }}"
60-
} >> $GITHUB_OUTPUT
55+
# Read changelog and save to a temporary file
56+
CHANGELOG_CONTENT=$(cat "$CHANGELOG_FILE")
57+
# Use printf to handle special characters properly
58+
printf "changelog<<GITCD_EOF\n%s\nGITCD_EOF\n" "$CHANGELOG_CONTENT" >> $GITHUB_OUTPUT
6159
echo "found=true" >> $GITHUB_OUTPUT
6260
else
63-
echo "found=false" >> $GITHUB_OUTPUT
6461
echo "changelog=Release $VERSION" >> $GITHUB_OUTPUT
62+
echo "found=false" >> $GITHUB_OUTPUT
6563
fi
6664
6765
- name: Create GitHub Release

changelogs/CHANGELOG-2.2.9.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Changelog for version 2.2.9
2+
============================
3+
4+
5+
Generic changes
6+
###############
7+
8+
- Publication in pypi.io handled over github actions

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.8
1+
2.2.9

0 commit comments

Comments
 (0)