v__0.187 #223
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: builds and ships to PYPI | |
on: [push] | |
jobs: | |
build: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
environment: Alfred_variables | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ['3.9'] | |
if: contains(github.event.head_commit.message, 'v__') | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Upgrade pip | |
run: | | |
pip install --upgrade pip | |
pip install --upgrade build | |
- name: Install wheels | |
run: pip install wheel | |
- name: Build wheels | |
run: python setup.py sdist bdist_wheel | |
- name: Postprint | |
run: echo '--------post---------'; ls dist | |
- name: Install twine | |
run: python -m pip install twine | |
- name: Upload to PyPI | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | |
TWINE_REPOSITORY: pypi | |
skip_existing: true | |
run: python -m twine upload --skip-existing --verbose dist/* | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./dist/*.whl |