Skip to content

Bump pypa/cibuildwheel from 2.13.0 to 2.15.0 (#987) #162

Bump pypa/cibuildwheel from 2.13.0 to 2.15.0 (#987)

Bump pypa/cibuildwheel from 2.13.0 to 2.15.0 (#987) #162

Workflow file for this run

name: pypi_upload
on:
release:
types: [published]
push:
branches: [main]
permissions:
contents: read
jobs:
build:
uses: Instagram/LibCST/.github/workflows/build.yml@main
upload_release:
name: Upload wheels to pypi
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download binary wheels
id: download
uses: actions/download-artifact@v3
with:
name: wheels
path: wheelhouse
- uses: actions/setup-python@v4
with:
cache: pip
cache-dependency-path: "pyproject.toml"
python-version: "3.10"
- name: Install hatch
run: pip install -U hatch
- name: Build a source tarball
env:
LIBCST_NO_LOCAL_SCHEME: 1
run: >-
hatch run python -m
build
--sdist
--outdir ${{ steps.download.outputs.download-path }}
- name: Publish distribution 📦 to Test PyPI
if: github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
packages_dir: ${{ steps.download.outputs.download-path }}
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ${{ steps.download.outputs.download-path }}