6262 build-and-deploy :
6363 runs-on : ubuntu-latest
6464 needs : [release, ts-tests, pre-commit-checks, e2e-tests]
65+ environment : release
6566 env :
6667 VERSION : ${{ needs.release.outputs.version }}
6768 permissions :
@@ -104,11 +105,11 @@ jobs:
104105 - name : Verify build artifacts
105106 run : |
106107 ls -la dist/
107- if [ ! -f "dist/streamlit_pivot_table -$VERSION-py3-none-any.whl" ]; then
108+ if [ ! -f "dist/streamlit_pivot -$VERSION-py3-none-any.whl" ]; then
108109 echo "Expected wheel file not found"
109110 exit 1
110111 fi
111- if [ ! -f "dist/streamlit_pivot_table -$VERSION.tar.gz" ]; then
112+ if [ ! -f "dist/streamlit_pivot -$VERSION.tar.gz" ]; then
112113 echo "Expected source distribution not found"
113114 exit 1
114115 fi
@@ -121,9 +122,10 @@ jobs:
121122 path : dist/
122123 retention-days : 30
123124
124- - name : Publish to PyPI
125+ - name : Publish to TestPyPI
125126 uses : pypa/gh-action-pypi-publish@release/v1
126127 with :
128+ repository-url : https://test.pypi.org/legacy/
127129 packages-dir : dist/
128130 verbose : true
129131
@@ -146,10 +148,10 @@ jobs:
146148 if : success()
147149 env :
148150 SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
149- PYPI_URL : " https://pypi.org/project/streamlit-pivot-table /${{ needs.release.outputs.version }}/"
151+ PYPI_URL : " https://test. pypi.org/project/streamlit-pivot/${{ needs.release.outputs.version }}/"
150152 run : |
151153 curl -X POST -H 'Content-type: application/json' \
152- --data "{\"text\": \"streamlit-pivot-table v$VERSION has been released! PyPI: $PYPI_URL\"}" \
154+ --data "{\"text\": \"streamlit-pivot v$VERSION has been released to TestPyPI! $PYPI_URL\"}" \
153155 $SLACK_WEBHOOK
154156
155157 - name : Send Slack notification (failure)
@@ -158,12 +160,12 @@ jobs:
158160 SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
159161 run : |
160162 curl -X POST -H 'Content-type: application/json' \
161- --data "{\"text\": \"streamlit-pivot-table v$VERSION release failed! Workflow: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\"}" \
163+ --data "{\"text\": \"streamlit-pivot v$VERSION release failed! Workflow: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\"}" \
162164 $SLACK_WEBHOOK
163165
164166 - name : Release summary
165167 if : success()
166168 run : |
167169 echo "Release v$VERSION completed successfully!"
168- echo "PyPI : https://pypi.org/project/streamlit-pivot-table /$VERSION/"
170+ echo "TestPyPI : https://test. pypi.org/project/streamlit-pivot/$VERSION/"
169171 echo "GitHub: https://github.com/${{ github.repository }}/releases/tag/v$VERSION"
0 commit comments