From dc5f2b657f62f96193457a18be53166a41208a50 Mon Sep 17 00:00:00 2001 From: Mustafa Abdulrahman Date: Fri, 11 Aug 2023 16:54:28 -0400 Subject: [PATCH] fix: enhance publish action and authors in pyproject.toml --- .github/workflows/release-and-publish.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index 796158f11..23937fe89 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -20,8 +20,6 @@ jobs: uses: relekang/python-semantic-release@master with: github_token: ${{ secrets.ADMIN_TOKEN }} # Use the new token for authentication - repository_username: __token__ - repository_password: ${{ secrets.PYPI_TOKEN }} git_committer_name: "OpenAdapt Bot" git_committer_email: "bot@openadapt.ai" @@ -34,12 +32,15 @@ jobs: with: ref: main - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: '3.10' - - name: Build and publish to PyPI - uses: JRubics/poetry-publish@v1.17 - with: - python_version: "3.10" - poetry_version: "==1.5.1" - pypi_token: ${{ secrets.PYPI_TOKEN }} + - name: Publish + env: + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} + run: | + pip install poetry + poetry install + poetry config pypi-token.pypi $PYPI_TOKEN + poetry build + poetry publish --no-interaction --skip-existing