Skip to content

Commit c664385

Browse files
committed
build: Use hatch for release
1 parent a830c09 commit c664385

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,14 @@ jobs:
1515
uses: actions/setup-python@v3
1616
with:
1717
python-version: 3.9
18-
- name: Install tox
19-
run: >-
20-
python -m
21-
pip install
22-
tox
23-
--user
24-
- name: Build a binary wheel and a source tarball
25-
run: >-
26-
python -m tox -e build
27-
- name: Publish distribution 📦 to PyPI
28-
uses: pypa/gh-action-pypi-publish@release/v1
29-
with:
30-
user: __token__
31-
password: ${{ secrets.PYPI_TOKEN }}
18+
19+
- run: pip install hatch
20+
21+
- name: Build package
22+
run: hatch build
23+
24+
- name: Publish package
25+
run: hatch publish -n
26+
env:
27+
HATCH_INDEX_USER: __token__
28+
HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)