From 821c7fe8032ebfe9b809ae873892f5db88b1663c Mon Sep 17 00:00:00 2001 From: Ryo <36154873+RyoJerryYu@users.noreply.github.com> Date: Sat, 8 Jun 2024 22:20:24 +0800 Subject: [PATCH] chore: add install build twine --- .github/workflows/release.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8e5a225..ff25327 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -57,13 +57,14 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt pip install -r requirements-dev.txt + pip install build twine - name: Update version run: | sed -i "s/^version = \"0.0.0\"$/version = \"$GITHUB_REF_NAME\"/" pyproject.toml + - name: Build + run: python -m build - name: Publish to PyPI - run: | - python -m build - python -m twine upload --repository pypi dist/* + run: python -m twine upload --repository pypi dist/* env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}