Skip to content

Switch to API_TOKEN #23

Switch to API_TOKEN

Switch to API_TOKEN #23

Workflow file for this run

name: Python package build and publish with manylinux
# https://github.com/RalfG/python-wheels-manylinux-build
on:
release:
types: [created]
# Trigger the workflow on push or pull request,
# but only for the main branch and the pypi branch
push:
branches:
- pypi
# - main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.10.13
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine
- name: Build manylinux Python wheels
uses: RalfG/python-wheels-manylinux-build@v0.7.1-manylinux2014_x86_64
with:
python-versions: 'cp310-cp310 cp311-cp311'
build-requirements: 'cython numpy astropy h5py scipy'
- name: Publish distribution 📦 to Test PyPI
env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine check dist/*
ls dist/
# Commands for uploading to https://test.pypi.org
# twine upload --repository-url https://test.pypi.org/legacy/ dist/*tar.gz
# twine upload --repository-url https://test.pypi.org/legacy/ dist/*manylinux*
# Commands for uploading to pypi
#twine upload dist/*tar.gz
twine upload dist/*manylinux*