Skip to content

Commit 2e748ca

Browse files
authored
Updating the version for the sdist build (#276)
1 parent 2fe54ea commit 2e748ca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ jobs:
177177
runs-on: ubuntu-latest
178178
steps:
179179
- uses: actions/checkout@v4
180+
- name: Update version in toml
181+
run: |
182+
TAG=${{ github.event.inputs.tag }}
183+
VERSION=${TAG#v}
184+
if [ -n "$VERSION" ]; then
185+
sed -i '' '/^version /s/=.*$/= "'"$VERSION"'"/' hf_xet/Cargo.toml
186+
fi
180187
- name: Build sdist
181188
uses: PyO3/maturin-action@v1
182189
with:

0 commit comments

Comments
 (0)