From c06c05f1f9d14ca8aec9fca57412936ec37c9e0a Mon Sep 17 00:00:00 2001 From: Yusuke Oda Date: Sun, 13 Nov 2022 22:44:33 +0900 Subject: [PATCH] fix release.yml (#97) --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 05ca087..be5e57f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,8 +17,8 @@ jobs: python-version: "3.10" - name: build run: | - echo "__version__ = \"${GITHUB_REF_NAME:1}\"" > src/latexify/_version.py - python -m pip install --upgrade build + python -m pip install --upgrade build hatch + python -m hatch version "${GITHUB_REF_NAME}" python -m build - name: publish uses: pypa/gh-action-pypi-publish@release/v1