Skip to content

Commit f9baead

Browse files
committed
use flit
1 parent 56bb6c4 commit f9baead

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,17 @@ jobs:
2424
- name: Set up Python
2525
uses: actions/setup-python@v5
2626
with:
27-
python-version: '3.12'
28-
- name: Install dependencies
27+
python-version: 3.12
28+
- name: Install flit
2929
run: |
30-
python -m pip install --upgrade pip
31-
pip install build
32-
- name: Build package
33-
run: python -m build
34-
- name: Publish package
35-
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450
36-
with:
37-
user: __token__
38-
password: ${{ secrets.PYPI_API_TOKEN }}
30+
pip install flit
31+
- name: Publish the distibution to PyPI
32+
run: flit publish
33+
env:
34+
FLIT_INDEX_URL: https://upload.pypi.org/legacy/
35+
FLIT_USERNAME: __token__
36+
FLIT_PASSWORD: ${{ secrets. PYPI_API_TOKEN }}
37+
3938

4039
release:
4140
name: Create release

0 commit comments

Comments
 (0)