-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEST: add temporary pull request trigger; comment out actual uploads …
…and sdist build
- Loading branch information
1 parent
310ada6
commit c6678b4
Showing
1 changed file
with
28 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: Release to PyPI | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
@@ -29,37 +30,37 @@ jobs: | |
- name: Build wheels | ||
uses: pypa/[email protected] | ||
|
||
- name: Check and upload wheels | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python -m twine check --strict wheelhouse/*.whl | ||
python -m twine upload wheelhouse/*.whl | ||
# - name: Check and upload wheels | ||
# env: | ||
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
# run: | | ||
# python -m twine check --strict wheelhouse/*.whl | ||
# python -m twine upload wheelhouse/*.whl | ||
|
||
build-sdist: | ||
runs-on: ubuntu-latest | ||
# build-sdist: | ||
# runs-on: ubuntu-latest | ||
|
||
steps: | ||
# steps: | ||
|
||
- name: Check out the release commit | ||
uses: actions/checkout@v4 | ||
# - name: Check out the release commit | ||
# uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: '3.10' | ||
|
||
- name: Install Python packages needed for sdist build and upload | ||
run: python -m pip install build twine | ||
# - name: Install Python packages needed for sdist build and upload | ||
# run: python -m pip install build twine | ||
|
||
- name: Build sdist | ||
run: python -m build --sdist | ||
# - name: Build sdist | ||
# run: python -m build --sdist | ||
|
||
- name: Publish sdist to PyPI | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python -m twine check --strict dist/* | ||
python -m twine upload dist/* | ||
# - name: Publish sdist to PyPI | ||
# env: | ||
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
# run: | | ||
# python -m twine check --strict dist/* | ||
# python -m twine upload dist/* |