From a05be921a7e58dae7d04634ff735ba7ed6494a1f Mon Sep 17 00:00:00 2001 From: Nam Le Date: Wed, 11 Jun 2025 16:01:37 +0200 Subject: [PATCH 1/2] Fix deployment configuration to use correct tag of PyPI publish GitHub Action --- .github/workflows/github_cd.yaml | 2 +- src/chatbot/__about__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github_cd.yaml b/.github/workflows/github_cd.yaml index b4fbaa9..2a37558 100644 --- a/.github/workflows/github_cd.yaml +++ b/.github/workflows/github_cd.yaml @@ -44,4 +44,4 @@ jobs: name: release-dists path: dist/ - name: Publish release distributions to PyPI - uses: pypa/gh-action-pypi-publish@6f7e8d9c0b1a2c3d4e5f6a7b8c9d0e1f2a3b4c5d + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/src/chatbot/__about__.py b/src/chatbot/__about__.py index 9c7a443..2832876 100644 --- a/src/chatbot/__about__.py +++ b/src/chatbot/__about__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2025-present Nam Le # # SPDX-License-Identifier: MIT -__version__ = "0.0.3" +__version__ = "0.0.4" From 591e51f58064c1bf6c31886b7c444312d91dfe2c Mon Sep 17 00:00:00 2001 From: Nam Le Date: Wed, 11 Jun 2025 16:17:04 +0200 Subject: [PATCH 2/2] Fix workflow config to correct environment for PyPI publishing --- .github/workflows/github_cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github_cd.yaml b/.github/workflows/github_cd.yaml index 2a37558..0de73da 100644 --- a/.github/workflows/github_cd.yaml +++ b/.github/workflows/github_cd.yaml @@ -35,7 +35,7 @@ jobs: permissions: id-token: write environment: - name: pypi + name: release url: https://pypi.org/p/chatbot_nam685/ steps: - name: Retrieve release distributions