We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84bc824 commit 993f923Copy full SHA for 993f923
1 file changed
.github/workflows/publish_package.yml
@@ -11,7 +11,7 @@ jobs:
11
permissions:
12
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
13
steps:
14
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
15
16
- name: Set up Python 3.12
17
uses: actions/setup-python@v4
@@ -27,7 +27,14 @@ jobs:
27
28
- name: Update version in pyproject.toml
29
run: |
30
- sed -i "s/version = \".*\"/version = \"${{ env.VERSION }}\"/" pyproject.toml
+ python -c "
31
+ import tomlkit
32
+ with open('pyproject.toml', 'r') as f:
33
+ content = tomlkit.load(f)
34
+ content['project']['version'] = '${{ env.VERSION }}'
35
+ with open('pyproject.toml', 'w') as f:
36
+ tomlkit.dump(content, f)
37
+ "
38
39
- name: Build distribution
40
run: python -m build --sdist --wheel --outdir dist/
0 commit comments