Skip to content

Commit 2ca4c76

Browse files
easyCZstainless-app[bot]
authored andcommitted
Update publish-pypi.yml for Rye installation and publishing
1 parent bf58497 commit 2ca4c76

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff 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/

0 commit comments

Comments
 (0)