Skip to content

Commit

Permalink
chore: ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewTriesToCode committed Nov 13, 2024
1 parent fdf1cf6 commit 78850e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,22 @@ do
done

# Update the Version property in Directory.Build.props:
echo "Updating version in Directory.Build.props"
sed -E -i 's|<Version>.*</Version>|<Version>'"${version}"'</Version>|g' src/Directory.Build.props

# Update the version in readme and docs files with <span class="_version"> elements:
echo "Updating version in README.md and docs"
sed -E -i 's|<span class="_version">.*</span>|<span class="_version">'"${version}"'</span>|g' README.md docs/*.md

# Set text to display whether the release is public feed or private feed:
sed -E -i 's|<span class="_release-feed-type">.*</span>|<span class="_release-feed-type">'"${feed_type}"'</span>|g' README.md docs/*.md
# sed -E -i 's|<span class="_release-feed-type">.*</span>|<span class="_release-feed-type">'"${feed_type}"'</span>|g' README.md docs/*.md

# Set text wherever release notes are needed in docs:
echo "Set text wherever release notes are needed in docs"
perl -i -0777 -pe 's|<!--_release-notes-->.*<!--_release-notes-->|<!--_release-notes-->\n'"${release_notes}"'\n<!--_release-notes-->|s' docs/*.md

# Set text for release notes in readme (header line stripped):
echo "Set text for release notes in readme (header line stripped)"
release_notes_no_header=$(echo -e "${release_notes}" | tail -n +2)
perl -i -0777 -pe 's|<!--_release-notes-->.*<!--_release-notes-->|<!--_release-notes-->\n'"${release_notes_no_header}"'\n<!--_release-notes-->|s' README.md

Expand Down

0 comments on commit 78850e8

Please sign in to comment.