diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 49b7d60..e23fe15 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -49,6 +49,12 @@ jobs: FOLDER: docs/_build/html Publish: runs-on: ubuntu-latest + # PyPI trusted publishing: uploads accepted only from this workflow in the + # pypi environment (limited to main). No stored token. + environment: pypi + permissions: + contents: write # publish-git-tag.sh pushes the version tag + id-token: write if: | (github.repository == 'PolicyEngine/reweight') && (github.event.head_commit.message == 'Update reweight') @@ -68,6 +74,4 @@ jobs: - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - user: __token__ - password: ${{ secrets.PYPI }} skip-existing: true diff --git a/setup.py b/setup.py index 6a8e3ed..8d586f5 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name="reweight", - version="0.3.0", + version="0.3.1", author="PolicyEngine", author_email="hello@policyengine.org", long_description=readme,