Skip to content

Commit e8e4d3d

Browse files
authored
fix release job in CI (#1735)
1 parent 1802ea5 commit e8e4d3d

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -661,23 +661,22 @@ jobs:
661661
needs: [test-builds-arch, test-builds-os, build-sdist, check]
662662
if: always() && startsWith(github.ref, 'refs/tags/')
663663
runs-on: ubuntu-latest
664-
environment: release
664+
665+
environment:
666+
name: release
665667

666668
permissions:
667669
id-token: write
668670

669671
steps:
670672
- uses: actions/checkout@v4
671673

672-
- name: set up python
673-
uses: actions/setup-python@v5
674-
with:
675-
python-version: '3.13'
674+
- uses: astral-sh/setup-uv@v6
676675

677676
- run: pip install -U twine
678677

679678
- name: check package version
680-
run: python .github/check_version.py
679+
run: uv run .github/check_version.py
681680

682681
- name: get dist artifacts
683682
uses: actions/download-artifact@v4
@@ -686,12 +685,7 @@ jobs:
686685
merge-multiple: true
687686
path: dist
688687

689-
- run: twine check --strict dist/*
690-
691-
- name: Publish to PyPI
692-
uses: pypa/gh-action-pypi-publish@release/v1
693-
with:
694-
skip-existing: true
688+
- run: uv publish --trusted-publishing always
695689

696690
- name: get wasm dist artifacts
697691
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)