Skip to content

Commit 710bd75

Browse files
authored
Update publish_to_pypi.yml
1 parent a55cc71 commit 710bd75

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/publish_to_pypi.yml

+5-13
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,15 @@ jobs:
1212
# IMPORTANT: this permission is mandatory for trusted publishing
1313
id-token: write
1414
steps:
15-
- uses: actions/checkout@v4
16-
with:
17-
ref: ${{ github.event.pull_request.head.ref }}
18-
fetch-depth: 0
19-
fetch-tags: true
15+
- uses: actions/checkout@v2
2016
- name: Set up Python
21-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v2
2218
with:
23-
python-version: 3.9
19+
python-version: 3.8
2420
- name: Install dependencies and Build
2521
run: |
2622
python -m pip install --upgrade pip
27-
pip install setuptools build
28-
python -m build --wheel --outdir dist/ .
29-
- name: Check distribution files
30-
run: |
31-
pip install twine
32-
twine check dist/*
23+
pip install setuptools wheel twine
24+
python setup.py sdist bdist_wheel
3325
- name: Publish
3426
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)