Skip to content

Commit 441e843

Browse files
committed
update workflow
1 parent 045321c commit 441e843

File tree

2 files changed

+6
-91
lines changed

2 files changed

+6
-91
lines changed

.github/workflows/publish-go-package.yml

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ jobs:
4646
cd replayer-adapter-go
4747
go build -v ./...
4848
49-
- name: Create release assets
50-
if: startsWith(github.ref, 'refs/tags/replayer-adapter-go-v')
51-
run: |
52-
cd replayer-adapter-go
53-
# Create a source archive
54-
tar -czf temporal-replayer-adapter-go-${{ github.ref_name }}.tar.gz --exclude='.git' --exclude='*.tar.gz' .
55-
5649
- name: Create GitHub Release
5750
if: startsWith(github.ref, 'refs/tags/replayer-adapter-go-v')
5851
uses: actions/create-release@v1
@@ -64,7 +57,7 @@ jobs:
6457
body: |
6558
## Changes in this release
6659
67-
This release includes updates to the Temporal Workflow Replay Debugger Go replayer adapter.
60+
This release includes updates to the Temporal Workflow Debugger Go replayer adapter.
6861
6962
### Package: temporal-replayer-adapter-go
7063
@@ -74,32 +67,16 @@ jobs:
7467
7568
### Installation
7669
77-
#### From GitHub (Recommended)
78-
```bash
79-
go get github.com/phuongdnguyen/temporal-workflow-replay-debugger/replayer-adapter-go@${{ github.ref_name }}
80-
```
81-
82-
#### From GitHub Packages
8370
```bash
84-
# Configure GOPROXY for GitHub Packages
85-
export GOPROXY=https://proxy.golang.org,direct
86-
go get github.com/phuongdnguyen/temporal-workflow-replay-debugger/replayer-adapter-go@${{ github.ref_name }}
87-
```
88-
89-
### Usage
90-
91-
```go
92-
import "github.com/phuongdnguyen/temporal-workflow-replay-debugger/replayer-adapter-go"
71+
go get github.com/phuongdnguyen/temporal-workflow-debugger/replayer-adapter-go@${{ github.ref_name }}
9372
```
9473
draft: false
9574
prerelease: false
96-
files: |
97-
replayer-adapter-go/temporal-replayer-adapter-go-${{ github.ref_name }}.tar.gz
9875

9976
- name: Manual release creation
10077
if: github.event_name == 'workflow_dispatch'
10178
run: |
10279
echo "Manual release triggered for version: ${{ github.event.inputs.version }}"
10380
echo "To create a release, push a tag with the version:"
104-
echo "git tag replayer-adapter-go-v${{ github.event.inputs.version }}"
105-
echo "git push origin replayer-adapter-go-v${{ github.event.inputs.version }}"
81+
echo "git tag v${{ github.event.inputs.version }}"
82+
echo "git push origin v${{ github.event.inputs.version }}"

.github/workflows/publish-python-package.yml

Lines changed: 2 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
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: |
@@ -51,19 +50,6 @@ jobs:
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: |
@@ -78,21 +64,8 @@ jobs:
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

Comments
 (0)