Skip to content

Commit 742dd07

Browse files
authored
ci: release: Use checkout
1 parent 91dad45 commit 742dd07

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,22 @@ jobs:
1111
strategy:
1212
matrix:
1313
python-version:
14-
- 3.8
14+
- "3.10"
1515
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: ${{ matrix.python-version }}
1621
- name: Install PyPi Release Dependencies
1722
run: |
18-
pip install -U setuptools wheel twine
19-
- name: Package
23+
pip install -U setuptools wheel twine build
24+
- name: Build Package
2025
run: |
21-
python setup.py sdist
22-
python setup.py bdist_wheel
26+
python -m build
2327
- name: PyPi Release
2428
id: pypi-release
2529
run: |
26-
python setup.py sdist
27-
python setup.py bdist_wheel
2830
echo "::set-output name=tag::${GITHUB_REF/refs\/tags\//}}"
2931
export TWINE_USERNAME=__token__
3032
export TWINE_PASSWORD=${{ secrets.PYPI_RPMFILE }}

0 commit comments

Comments
 (0)