Skip to content

Commit 06b79a4

Browse files
committed
update workflow
1 parent 6f28de5 commit 06b79a4

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/python-publish.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,17 @@ jobs:
6565
- name: Set up Python
6666
uses: actions/setup-python@v2
6767
with:
68-
python-version: '3.10'
69-
70-
- name: Check that tag version matches code version
71-
run: |
72-
tag=${GITHUB_REF#refs/tags/}
73-
version=$(python setup.py --version)
74-
echo 'tag='$tag
75-
echo "version file="$version
76-
test "$tag" == "$version"
68+
python-version: '3.x'
7769

7870
- name: Install dependencies
7971
run: |
8072
python -m pip install --upgrade pip
81-
pip install setuptools wheel twine
73+
pip install build wheel twine
8274
- name: Build and publish
8375
env:
8476
TWINE_USERNAME: __token__
8577
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
8678
run: |
87-
python setup.py sdist
79+
python -m pip install --upgrade build
80+
python -m build
8881
twine upload dist/*

0 commit comments

Comments
 (0)