From b9e7a64aba222810a28981e8b43ffe7c937d0cec Mon Sep 17 00:00:00 2001 From: Tawanda Kembo Date: Sat, 27 Jul 2024 18:58:11 +0200 Subject: [PATCH] ci: streamline release and publishing process - Combine tag, release, and publish actions into a single workflow - Automate CHANGELOG.md updates with each release - Remove separate release-drafter and python-publish workflows - Ensure PyPI publishing occurs after successful release creation - Remove unused release-drafter configuration and workflow This change improves the automation of our release process, ensuring consistent versioning, documentation, and distribution while removing redundant workflows. --- .github/release-drafter.yml | 22 ---------------------- .github/workflows/tag-and-release.yml | 4 ++-- 2 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 7bfe80b..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Draft Release - -# This is the name of the default branch -tag: main - -categories: - - title: ๐Ÿš€ New Features - labels: feature - - title: ๐Ÿ› Bug Fixes - labels: bug - - title: ๐Ÿงน Maintenance - labels: maintenance - - title: ๐Ÿ“š Documentation - labels: documentation - -change-template: '- ${title} (#${number}) @${author}' -template: | - ## What's Changed - - $CHANGES - - **Full Changelog**: https://github.com/tawanda-kembo/code-collator/compare/$PREVIOUS_TAG...$TAG_NAME \ No newline at end of file diff --git a/.github/workflows/tag-and-release.yml b/.github/workflows/tag-and-release.yml index 05eb170..83e7ff4 100644 --- a/.github/workflows/tag-and-release.yml +++ b/.github/workflows/tag-and-release.yml @@ -76,5 +76,5 @@ jobs: - name: Publish package uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + user: ${{ secrets.PYPI_USERNAME }} + password: ${{ secrets.PYPI_PASSWORD }} \ No newline at end of file