Skip to content

Commit edfa514

Browse files
committed
chore: pre-release
1 parent 19f3774 commit edfa514

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/pre-release.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,24 @@ jobs:
3636

3737
- name: compute ibis version
3838
id: get_version
39-
run: echo "value=$(poetry version)" >> "$GITHUB_OUTPUT"
39+
run: |
40+
set -euo pipefail
4041
41-
- name: run some poetry sanity checks
42-
run: poetry check
43-
if: contains(steps.get_version.outputs.value, '.dev')
42+
VERSION="$(uvx dunamai from git --style pep440 --no-metadata --latest-tag --pattern default-unprefixed)"
43+
echo "value=${VERSION}" >> "$GITHUB_OUTPUT"
4444
4545
- name: build wheel and source dist
46-
run: poetry build
47-
if: contains(steps.get_version.outputs.value, '.dev')
48-
49-
- name: add test pypi index
46+
run: uv build
5047
if: contains(steps.get_version.outputs.value, '.dev')
51-
run: poetry config repositories.test-pypi https://test.pypi.org/legacy/
5248

5349
- name: publish pre-release wheel to test pypi index
5450
if: contains(steps.get_version.outputs.value, '.dev')
55-
run: poetry publish -r test-pypi
51+
run: uv publish --publish-url https://test.pypi.org/legacy/
5652
env:
57-
POETRY_PYPI_TOKEN_TEST_PYPI: ${{ secrets.TEST_PYPI_TOKEN }}
53+
UV_PUBLISH_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }}
5854

5955
- name: publish pre-release wheel to pypi
6056
if: contains(steps.get_version.outputs.value, '.dev')
61-
run: poetry publish
57+
run: uv publish
6258
env:
63-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
59+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)