We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dac2173 commit d996839Copy full SHA for d996839
.github/workflows/release.yaml
@@ -15,12 +15,19 @@ jobs:
15
with:
16
python-version: "3.11"
17
18
- - name: Install dependencies
19
- run: make install
20
-
21
- name: Get Release Version
22
id: get_version
23
- run: echo "package_version=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
+ run: echo "package_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
+
+ - name: Build and Publish Python Package
+ 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/*
31
32
- name: Log in to GitHub Container Registry
33
uses: docker/login-action@v2
0 commit comments