more publish infra fixes; on testpypi now #2
This file contains hidden or 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: Python Publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'VERSION.txt' | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: python-release | |
| url: https://pypi.org/project/sharetrace/ | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup credentials | |
| run: | | |
| mkdir -p secrets | |
| touch secrets/pypi.token | |
| chmod 600 secrets/pypi.token | |
| echo "${{ secrets.PYPI_TOKEN }}" > secrets/pypi.token | |
| - name: Publish to PyPI | |
| run: ./tools/publish.sh pypi |