Skip to content

Commit 6a6755c

Browse files
committed
chore: update release workflow
1 parent 3bd5cd4 commit 6a6755c

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,21 @@ jobs:
99
runs-on: ubuntu-latest
1010
timeout-minutes: 30
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
13+
1314
- name: Set up Python
14-
uses: actions/setup-python@v1
15+
uses: actions/setup-python@v5
1516
with:
1617
python-version: "3.x"
18+
1719
- name: Install dependencies
1820
run: |
19-
pip install --upgrade pip setuptools twine
21+
pip install --upgrade pip hatch twine
22+
2023
- name: Build and publish
2124
env:
22-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
23-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
25+
TWINE_USERNAME: __token__
26+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
2427
run: |
25-
python setup.py sdist
26-
twine upload dist/*
28+
hatch build
29+
twine upload dist/* --verbose

0 commit comments

Comments
 (0)