Skip to content

Commit 754023d

Browse files
authored
Merge pull request #317 from microsoftgraph/chore/publish-with-setuptools
Publish with setuptools
2 parents 51599dc + 36a66d9 commit 754023d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,17 @@ jobs:
2525
uses: actions/setup-python@v5
2626
with:
2727
python-version: 3.12
28-
- name: Install flit
28+
- name: Install dependencies
2929
run: |
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 }}
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@v1
36+
with:
37+
user: __token__
38+
password: ${{ secrets.PYPI_API_TOKEN }}
3739

3840
release:
3941
name: Create release

0 commit comments

Comments
 (0)