Skip to content

Commit 82e64d8

Browse files
Update release script (#2)
1 parent e79e713 commit 82e64d8

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,19 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717

18-
- name: Setup Python 3.10
18+
- name: Setup Python 3.12
1919
uses: actions/setup-python@v3
2020
with:
21-
python-version: '3.10'
21+
python-version: '3.12'
2222

23-
- name: Install flit
24-
run: pip install flit
23+
- name: Install Poetry
24+
uses: snok/install-poetry@v1
2525

26-
- name: Build
27-
run: flit build
26+
- name: Configure Poetry for PyPI
27+
run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
2828

29-
- name: Publish to PyPI
30-
env:
31-
FLIT_USERNAME: __token__
32-
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}
33-
run: |
34-
flit publish
29+
- name: Build and publish
30+
run: poetry publish --build
3531

3632
- name: Create a GitHub Release
3733
id: create_release

0 commit comments

Comments
 (0)