You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor release workflow for manual Python packaging
Replaces the pycord-lib-release-action with explicit steps for setting up Python, installing dependencies, updating the changelog, building distributions, tagging releases, and publishing to PyPI. This change provides more control and transparency over the release process.
sed -i "/These changes are available on the \`.*\` branch, but have not yet been released\./{N;d;}" CHANGELOG.md
121
+
sed -i "s/## \[Unreleased\]/## [$VERSION] - $DATE/" CHANGELOG.md
122
+
sed -i "0,/## \[$VERSION\]/ s|## \[$VERSION\]|## [Unreleased]\n\nThese changes are available on the \`$BRANCH\` branch, but have not yet been released.\n\n### Added\n\n### Changed\n\n### Fixed\n\n### Removed\n\n&|" CHANGELOG.md
123
+
sed -i "s|\[unreleased\]:.*|[unreleased]: https://github.com/$REPOSITORY/compare/v$VERSION...HEAD\n[$VERSION]: https://github.com/$REPOSITORY/compare/$(git describe --tags --abbrev=0 @^)...v$VERSION|" CHANGELOG.md
124
+
git add CHANGELOG.md
125
+
git commit -m "chore(release): update CHANGELOG.md for version $VERSION"
126
+
- name: "Commit and Push Changelog to ${{ github.ref_name }}"
0 commit comments