Skip to content

Commit 5e7eb0c

Browse files
committed
build: update python workflow
The libnvme code is now in the nvme-cli repo. Also we need to be more precis with the version string update for pypi with the new versioning scheme. Thus make the matching of the sed expression more explicit. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 5b9da18 commit 5e7eb0c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/libnvme-release-python.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ jobs:
6767
echo "dev_version=$VERSION" >> $GITHUB_OUTPUT
6868
echo "Computed dev version: $VERSION"
6969
70-
- name: Patch version in meson.build
70+
- name: Patch project version in meson.build
7171
run: |
72-
sed -i -e "0,/[ \t]version: /s/\([ \t]version: \).*/\1\'${{ steps.version.outputs.dev_version }}\',/" meson.build
72+
sed -i -e "/^project(/,/)/ s/^\(\s*\)version:\s*.*/\1version: '${{ steps.version.outputs.dev_version }}',/" meson.build
7373
7474
- name: Build sdist
7575
run: |
@@ -93,7 +93,7 @@ jobs:
9393
environment: pypi
9494
permissions:
9595
id-token: write
96-
if: github.repository == 'linux-nvme/libnvme'
96+
if: github.repository == 'linux-nvme/nvme-cli'
9797
steps:
9898
- uses: actions/download-artifact@v6
9999
with:
@@ -113,7 +113,7 @@ jobs:
113113
environment: pypi
114114
permissions:
115115
id-token: write
116-
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'linux-nvme/libnvme'
116+
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'linux-nvme/nvme-cli'
117117
steps:
118118
- name: Check if it is a release tag
119119
id: check-tag

0 commit comments

Comments
 (0)