Skip to content

Commit

Permalink
Update publish_package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
james03160927 authored May 2, 2024
1 parent 11f9260 commit cd0e531
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit cd0e531

Please sign in to comment.