We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf58497 commit 2ca4c76Copy full SHA for 2ca4c76
1 file changed
.github/workflows/publish-pypi.yml
@@ -12,21 +12,26 @@ jobs:
12
publish:
13
name: publish
14
runs-on: ubuntu-latest
15
+ environment: release
16
permissions:
17
id-token: write
18
19
steps:
20
- uses: actions/checkout@v4
21
22
- name: Install Rye
- 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'
+ uses: eifinger/setup-rye@v4
+ with:
+ version: '0.44.0'
+
+ - name: Sync dependencies
28
+ run: rye sync
29
30
+ - name: Build package
31
+ run: rye build --clean
32
33
- name: Publish to PyPI
-
- bash ./bin/publish-pypi
34
+ uses: pypa/gh-action-pypi-publish@release/v1
35
36
+ # No token needed! Trusted publishing handles authentication
37
+ packages-dir: dist/
0 commit comments