Skip to content

Commit f6bfa99

Browse files
committed
Merge branch 'release/0.0.12'
2 parents bad1db1 + 1637f4c commit f6bfa99

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

.github/workflows/python-publish.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ jobs:
5353
# which are saved in the 'dist/' directory.
5454
- name: Build release distributions
5555
run: |
56-
poetry build
56+
poetry build
57+
echo "WHEEL_PATH=$(find $GITHUB_WORKSPACE/dist -name '*.whl')" >> $GITHUB_ENV
58+
echo "TAR_PATH=$(find $GITHUB_WORKSPACE/dist -name '*.tar.gz')" >> $GITHUB_ENV
5759
5860
# Step 7: Create GitHub Release
5961
# - This step creates a new GitHub release based on the tag that triggered the workflow.
@@ -76,18 +78,13 @@ jobs:
7678
ls -la ./dist
7779
pwd
7880
79-
- name: Rename wheel file
80-
run: |
81-
mv dist/prometheus_remote_writer-*.whl dist/prometheus_remote_writer-${{ github.ref_name }}.whl
82-
mv dist/prometheus_remote_writer-*.tar.gz dist/prometheus_remote_writer-${{ github.ref_name }}.tar.gz
83-
8481
- name: Upload Release Assets
8582
uses: actions/upload-release-asset@v1
8683
env:
8784
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8885
with:
8986
upload_url: ${{ steps.create_release.outputs.upload_url }}
90-
asset_path: dist/prometheus_remote_writer-${{ github.ref_name }}.whl
87+
asset_path: ${{ env.WHEEL_PATH }}
9188
asset_name: prometheus_remote_writer-${{ github.ref_name }}.whl
9289
asset_content_type: application/zip
9390

@@ -97,7 +94,7 @@ jobs:
9794
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9895
with:
9996
upload_url: ${{ steps.create_release.outputs.upload_url }}
100-
asset_path: dist/prometheus_remote_writer-${{ github.ref_name }}.tar.gz
97+
asset_path: ${{ env.TAR_PATH }}
10198
asset_name: prometheus_remote_writer-${{ github.ref_name }}.tar.gz
10299
asset_content_type: application/gzip
103100

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "prometheus-remote-writer"
3-
version = "0.0.11"
3+
version = "0.0.12"
44
description = "A Python package to send data using Prometheus remote write protocol."
55
authors = ["xy.kong <xy.kong@gmail.com>"]
66
license = "Apache License 2.0"
@@ -24,12 +24,12 @@ poetry-versions-plugin = ">=0.10.1"
2424

2525

2626
[tool.versions]
27-
branch = "release/0.0.11"
28-
commit = "08c34c3"
29-
commit_count = 78
27+
branch = "release/0.0.12"
28+
commit = "eb6b482"
29+
commit_count = 82
3030
is_dirty = false
31-
datetime = "2025-02-11 14:57:36"
32-
version = "0.0.11"
31+
datetime = "2025-02-11 15:14:41"
32+
version = "0.0.12"
3333

3434

3535
[tool.versions.settings]

0 commit comments

Comments
 (0)