Skip to content

Commit

Permalink
TEST: add temporary pull request trigger; comment out actual uploads …
Browse files Browse the repository at this point in the history
…and sdist build
  • Loading branch information
mdickinson committed Jan 24, 2025
1 parent 310ada6 commit c6678b4
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions .github/workflows/release-to-pypi.yml
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]
Expand Down Expand Up @@ -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/*

0 comments on commit c6678b4

Please sign in to comment.