Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Wigley committed Dec 3, 2021
1 parent 39868d5 commit 5a9d121
Showing 1 changed file with 23 additions and 26 deletions.
49 changes: 23 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
description: "Publish to PyPI (true/false)"
required: true
default: "false"
pull_request:

jobs:
python-macos:
Expand Down Expand Up @@ -35,8 +34,6 @@ jobs:
- name: Build wheels - universal2
uses: messense/maturin-action@v1
env:
# DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
# MACOSX_DEPLOYMENT_TARGET: '10.9'
PYO3_CROSS_LIB_DIR: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib
with:
args: -i python${{ matrix.python-version }} --release --universal2 --out dist --no-sdist
Expand Down Expand Up @@ -182,26 +179,26 @@ jobs:
name: wheels
path: dist

# publish:
# needs: [python-macos, python-windows, python-linux, python-linux-cross]
# name: Publish to PyPI
# environment:
# name: pypi-prod
# runs-on: ubuntu-latest
# if: ${{ github.event.inputs.publish == 'true' }}
# steps:
# - uses: actions/download-artifact@v2
# with:
# name: wheels
# - name: Show wheels generated
# run: ls -lh ./
# - uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - name: Publish to PyPi
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: |
# pip install --upgrade twine
# twine upload --skip-existing *
publish:
needs: [python-macos, python-windows, python-linux, python-linux-cross]
name: Publish to PyPI
environment:
name: pypi-prod
runs-on: ubuntu-latest
if: ${{ github.event.inputs.publish == 'true' }}
steps:
- uses: actions/download-artifact@v2
with:
name: wheels
- name: Show wheels generated
run: ls -lh ./
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Publish to PyPi
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install --upgrade twine
twine upload --skip-existing *

0 comments on commit 5a9d121

Please sign in to comment.