Python functions to get top-level importables names
0

Configure Feed

Select the types of activity you want to include in your feed.

First attempt at fixing PyPI publish

Juan Luis Cano Rodríguez (Dec 4, 2023, 10:36 PM +0100) ffcb6d21 d775d971

+5 -8
+5 -8
.github/workflows/publish.yml
··· 2 2 3 3 on: 4 4 push: 5 - branches: 6 - - main 7 5 tags: 8 6 # Don't try to be smart about PEP 440 compliance, 9 7 # see https://www.python.org/dev/peps/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions ··· 12 10 jobs: 13 11 publish: 14 12 runs-on: ubuntu-latest 13 + environment: release 14 + permissions: 15 + id-token: write 15 16 steps: 16 17 - uses: actions/checkout@v2 17 18 - name: Set up Python 18 19 uses: actions/setup-python@v2 19 20 with: 20 - python-version: 3.7 21 + python-version: 3.9 21 22 - name: Install build dependencies 22 23 run: python -m pip install build 23 24 - name: Build package 24 25 run: python -m build 25 26 - name: Publish to PyPI 26 - uses: pypa/gh-action-pypi-publish@release/v1.4 27 - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') 28 - with: 29 - user: __token__ 30 - password: ${{ secrets.PYPI_API_TOKEN }} 27 + uses: pypa/gh-action-pypi-publish@release/v1 31 28 - name: Create GitHub release 32 29 uses: softprops/action-gh-release@v1 33 30 if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')