@@ -113,32 +113,27 @@ jobs:
113113 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
114114
115115 # ============================================================================
116- # Publish Job - Publish to PyPI (DISABLED - Enable when ready)
116+ # Publish Job - Publish to PyPI
117117 # ============================================================================
118- # To enable PyPI publishing:
119- # 1. Create PyPI account at https://pypi.org
120- # 2. Set up Trusted Publishing or create API token
121- # 3. Uncomment the job below
122- #
123- # publish-pypi:
124- # name: Publish to PyPI
125- # runs-on: ubuntu-latest
126- # needs: [build, release]
127- # if: ${{ !contains(github.ref, 'alpha') && !contains(github.ref, 'beta') }}
128- # environment:
129- # name: pypi
130- # url: https://pypi.org/project/ensim/
131- # permissions:
132- # id-token: write
133- # contents: read
134- # steps:
135- # - uses: actions/download-artifact@v4
136- # with:
137- # name: packages
138- # path: dist/
139- # - uses: pypa/gh-action-pypi-publish@release/v1
140- # with:
141- # skip-existing: true
118+ publish-pypi :
119+ name : Publish to PyPI
120+ runs-on : ubuntu-latest
121+ needs : [build, release]
122+ if : ${{ !contains(github.ref, 'alpha') && !contains(github.ref, 'beta') }}
123+ environment :
124+ name : pypi
125+ url : https://pypi.org/project/ensim/
126+ permissions :
127+ id-token : write
128+ contents : read
129+ steps :
130+ - uses : actions/download-artifact@v4
131+ with :
132+ name : packages
133+ path : dist/
134+ - uses : pypa/gh-action-pypi-publish@release/v1
135+ with :
136+ skip-existing : true
142137
143138 # ============================================================================
144139 # Documentation Job - Build and publish docs
0 commit comments