diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index 03ddab2..9602128 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -27,14 +27,8 @@ jobs: - name: Update version in pyproject.toml run: | - python -m pip install tomlkit - python -c "\ - import tomlkit;\ - with open('pyproject.toml', 'r') as file:\ - pyproj = tomlkit.load(file);\ - pyproj['project']['version'] = '${{ env.VERSION }}';\ - with open('pyproject.toml', 'w') as file:\ - tomlkit.dump(pyproj, file)" + sed -i "s/version = \".*\"/version = \"${{ env.VERSION }}\"/" pyproject.toml + - name: Build distribution run: python -m build --sdist --wheel --outdir dist/