File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -12,21 +12,26 @@ jobs:
1212 publish :
1313 name : publish
1414 runs-on : ubuntu-latest
15+ environment : release
1516 permissions :
1617 id-token : write
1718
1819 steps :
1920 - uses : actions/checkout@v4
2021
2122 - name : Install Rye
22- run : |
23- curl -sSf https://rye.astral.sh/get | bash
24- echo "$HOME/.rye/shims" >> $GITHUB_PATH
25- env :
26- RYE_VERSION : ' 0.44.0 '
27- RYE_INSTALL_OPTION : ' --yes '
23+ uses : eifinger/setup-rye@v4
24+ with :
25+ version : ' 0.44.0 '
26+
27+ - name : Sync dependencies
28+ run : rye sync
2829
30+ - name : Build package
31+ run : rye build --clean
32+
2933 - name : Publish to PyPI
30-
31- run : |
32- bash ./bin/publish-pypi
34+ uses : pypa/gh-action-pypi-publish@release/v1
35+ with :
36+ # No token needed! Trusted publishing handles authentication
37+ packages-dir : dist/
You can’t perform that action at this time.
0 commit comments