Skip to content

Commit

Permalink
chore: add install build twine
Browse files Browse the repository at this point in the history
  • Loading branch information
RyoJerryYu committed Jun 8, 2024
1 parent 8e29ba1 commit 821c7fe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 821c7fe

Please sign in to comment.