4141 python -m pytest tests/ -v
4242 continue-on-error : true
4343
44- # Publish to PyPI
4544 - name : Publish to PyPI
4645 if : startsWith(github.ref, 'refs/tags/replayer-adapter-python-v')
4746 run : |
5150 TWINE_USERNAME : __token__
5251 TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
5352
54- # Prepare package for GitHub Release
55- - name : Prepare package for GitHub Release
56- if : startsWith(github.ref, 'refs/tags/replayer-adapter-python-v')
57- run : |
58- cd replayer-adapter-python
59- # Create a source distribution if not already created
60- if [ ! -d "dist" ]; then
61- python -m build
62- fi
63- # List the built packages
64- ls -la dist/
65-
66- # Manual publish to PyPI
6753 - name : Manual publish to PyPI
6854 if : github.event_name == 'workflow_dispatch'
6955 run : |
7864 TWINE_USERNAME : __token__
7965 TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
8066
81- # Manual prepare package for GitHub Release
82- - name : Manual prepare package for GitHub Release
83- if : github.event_name == 'workflow_dispatch'
84- run : |
85- cd replayer-adapter-python
86- # Update version in pyproject.toml if provided
87- if [ -n "${{ github.event.inputs.version }}" ]; then
88- sed -i 's/version = ".*"/version = "${{ github.event.inputs.version }}"/' pyproject.toml
89- fi
90- python -m build
91- ls -la dist/
92-
9367 - name : Create GitHub Release
9468 if : startsWith(github.ref, 'refs/tags/replayer-adapter-python-v')
95- id : create_release
9669 uses : actions/create-release@v1
9770 env :
9871 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -102,46 +75,11 @@ jobs:
10275 body : |
10376 ## Changes in this release
10477
105- This release includes updates to the Temporal Workflow Replay Debugger Python replayer adapter.
78+ This release includes updates to the Temporal Workflow Debugger Python replayer adapter.
10679
10780 ### Package: temporal-replayer-adapter-python
10881
10982 - Version: ${{ github.ref_name }}
11083 - Built from commit: ${{ github.sha }}
111-
112- ### Installation
113-
114- #### From PyPI (Recommended)
115- ```bash
116- pip install temporal-replayer-adapter-python
117- ```
118-
119- #### From GitHub Release
120- Download the wheel or source distribution from the release assets below and install:
121- ```bash
122- pip install temporal_replayer_adapter_python-${{ github.ref_name }}-py3-none-any.whl
123- # or
124- pip install temporal-replayer-adapter-python-${{ github.ref_name }}.tar.gz
125- ```
12684 draft : false
127- prerelease : false
128-
129- - name : Upload Python Package Assets to Release
130- if : startsWith(github.ref, 'refs/tags/replayer-adapter-python-v')
131- run : |
132- cd replayer-adapter-python
133- # Upload all built packages to the release
134- for file in dist/*; do
135- if [ -f "$file" ]; then
136- filename=$(basename "$file")
137- echo "Uploading $filename to release..."
138- curl -L \
139- -X POST \
140- -H "Accept: application/vnd.github+json" \
141- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
142- -H "X-GitHub-Api-Version: 2022-11-28" \
143- -H "Content-Type: application/octet-stream" \
144- "${{ steps.create_release.outputs.upload_url }}?name=$filename" \
145- --data-binary "@$file"
146- fi
147- done
85+ prerelease : false
0 commit comments