Merge pull request #236 from pyiron/dependabot/pip/pandas-2.1.3 #1128
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
name: PyPi Release | |
on: | |
push: | |
pull_request: | |
# based on https://github.com/pypa/gh-action-pypi-publish | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: >- | |
python -m pip install --user --upgrade setuptools wheel | |
- name: Convert dependencies | |
run: >- | |
sed -i 's/==/>=/g' setup.py; cat setup.py | |
- name: Build | |
run: >- | |
python setup.py sdist bdist_wheel | |
- name: Publish distribution 📦 to PyPI | |
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_password }} |