Skip to content

Commit 776d1a4

Browse files
author
Mathias Millet
committed
fix github action
1 parent 74e307e commit 776d1a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ jobs:
3636
- name: Setup and build
3737
run: |
3838
python -m pip install pdm
39-
version=$(echo $GITHUB_REF | cut -d / -f 3)
40-
sed -i "s/version = .*/version = \"$version\"/g" pyproject.toml
39+
export PDM_BUILD_SCM_VERSION=${GITHUB_REF}
4140
pdm build
4241
4342
- name: Publish distribution to PyPI

0 commit comments

Comments
 (0)