Skip to content

Commit d996839

Browse files
author
Maxwell Dylla
committed
add pypi to release
1 parent dac2173 commit d996839

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/release.yaml

+11-4
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,19 @@ jobs:
1515
with:
1616
python-version: "3.11"
1717

18-
- name: Install dependencies
19-
run: make install
20-
2118
- name: Get Release Version
2219
id: get_version
23-
run: echo "package_version=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
20+
run: echo "package_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
21+
22+
- name: Build and Publish Python Package
23+
env:
24+
PACKAGE_VERSION: ${{ env.package_version }}
25+
run: |
26+
pip install --upgrade pip
27+
pip install build twine
28+
sed -i "s/__version__ = .*/__version__ = \"$PACKAGE_VERSION\"/" src/pulse_telemetry/__init__.py
29+
python -m build
30+
twine upload dist/*
2431
2532
- name: Log in to GitHub Container Registry
2633
uses: docker/login-action@v2

0 commit comments

Comments
 (0)