|
13 | 13 | type: boolean |
14 | 14 | default: false |
15 | 15 | push: |
16 | | - # tags: |
17 | | - # - "*" |
| 16 | + tags: |
| 17 | + - "*" |
18 | 18 |
|
19 | 19 | env: |
20 | 20 | SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TILEDB: ${{ inputs.version }} |
@@ -136,30 +136,30 @@ jobs: |
136 | 136 | pip uninstall -y pandas |
137 | 137 | pytest -vv --showlocals $PROJECT_CWD |
138 | 138 |
|
139 | | - # upload_pypi: |
140 | | - # needs: [build_wheels, test_sdist] |
141 | | - # runs-on: ubuntu-latest |
142 | | - # environment: pypi |
143 | | - # permissions: |
144 | | - # id-token: write |
145 | | - # outputs: |
146 | | - # package_version: ${{ steps.get_package_version.outputs.package_version }} |
147 | | - # steps: |
148 | | - # - uses: actions/download-artifact@v4 |
149 | | - # with: |
150 | | - # path: dist |
151 | | - # merge-multiple: true |
152 | | - # |
153 | | - # - id: get_package_version |
154 | | - # run: | |
155 | | - # echo "package_version=$(ls dist/ | head -n 1 | cut -d - -f 2)" >> "$GITHUB_OUTPUT" |
156 | | - # |
157 | | - # - name: Upload to test-pypi |
158 | | - # if: inputs.test_pypi |
159 | | - # uses: pypa/gh-action-pypi-publish@release/v1 |
160 | | - # with: |
161 | | - # repository-url: https://test.pypi.org/legacy/ |
162 | | - # |
163 | | - # - name: Upload to pypi |
164 | | - # if: startsWith(github.ref, 'refs/tags/') |
165 | | - # uses: pypa/gh-action-pypi-publish@release/v1 |
| 139 | + upload_pypi: |
| 140 | + needs: [build_wheels, test_sdist] |
| 141 | + runs-on: ubuntu-latest |
| 142 | + environment: pypi |
| 143 | + permissions: |
| 144 | + id-token: write |
| 145 | + outputs: |
| 146 | + package_version: ${{ steps.get_package_version.outputs.package_version }} |
| 147 | + steps: |
| 148 | + - uses: actions/download-artifact@v4 |
| 149 | + with: |
| 150 | + path: dist |
| 151 | + merge-multiple: true |
| 152 | + |
| 153 | + - id: get_package_version |
| 154 | + run: | |
| 155 | + echo "package_version=$(ls dist/ | head -n 1 | cut -d - -f 2)" >> "$GITHUB_OUTPUT" |
| 156 | +
|
| 157 | + - name: Upload to test-pypi |
| 158 | + if: inputs.test_pypi |
| 159 | + uses: pypa/gh-action-pypi-publish@release/v1 |
| 160 | + with: |
| 161 | + repository-url: https://test.pypi.org/legacy/ |
| 162 | + |
| 163 | + - name: Upload to pypi |
| 164 | + if: startsWith(github.ref, 'refs/tags/') |
| 165 | + uses: pypa/gh-action-pypi-publish@release/v1 |
0 commit comments