Skip to content

Commit 0cc9b5c

Browse files
authored
Publish sdist (#861)
1 parent 14cc243 commit 0cc9b5c

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ jobs:
2121
with:
2222
python-version: "3.10"
2323

24-
- name: Install datadog_checks_dev
25-
run: |
26-
python -m pip install datadog_checks_dev[cli]
24+
- name: Install pypa/build
25+
run: python -m pip install build --user
2726

28-
- name: Set ddev pypi credentials
29-
run: |
30-
ddev config set pypi.user __token__
31-
ddev config set pypi.pass ${{ secrets.PYPI_TOKEN }}
27+
- name: Build a binary wheel and a source tarball
28+
run: python -m build --sdist --wheel --outdir dist/ .
3229

33-
- name: Publish the wheel to PyPI
34-
run: |
35-
ddev release upload .
30+
- name: Publish a Python distribution to PyPI
31+
uses: pypa/gh-action-pypi-publish@release/v1
32+
with:
33+
user: __token__
34+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)