A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

36 lines
1002 B

  1. name: Build macOS wheels
  2. on: push
  3. jobs:
  4. build:
  5. runs-on: macos-latest
  6. strategy:
  7. matrix:
  8. python-version:
  9. - '3.6'
  10. - '3.7'
  11. - '3.8'
  12. - '3.9'
  13. - '3.10'
  14. steps:
  15. - uses: actions/checkout@v2
  16. - name: Set up Python ${{ matrix.python-version }}
  17. uses: actions/setup-python@v2
  18. with:
  19. python-version: ${{ matrix.python-version }}
  20. - name: Build wheels
  21. run: |
  22. python -m pip install --upgrade pip wheel setuptools
  23. pip wheel . -w dist/
  24. ls dist/
  25. - name: Publish package to PyPI
  26. # Only actually publish if a new tag was pushed
  27. if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
  28. # We can't use the pypa action because of https://github.com/pypa/gh-action-pypi-publish/issues/15
  29. run: |
  30. pip install twine
  31. TWINE_USERNAME="__token__" \
  32. TWINE_PASSWORD="${{ secrets.pypi_password }}" \
  33. twine upload dist/*