Skip to content

Commit d78e260

Browse files
committed
Rewrite GH action to publish
1 parent ebdeed0 commit d78e260

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/python-publish.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3-
41
name: Upload Python Package
52

63
on:
@@ -16,19 +13,18 @@ jobs:
1613
runs-on: ubuntu-latest
1714

1815
steps:
19-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
17+
2018
- name: Set up Python
21-
uses: actions/setup-python@v3
19+
uses: actions/setup-python@v5.1.1
2220
with:
2321
python-version: "3.x"
22+
2423
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install build
24+
run: rye sync
25+
2826
- name: Build package
29-
run: python -m build
27+
run: rye build
28+
3029
- name: Publish package
31-
uses: pypa/gh-action-pypi-publish@717ba43cfbb0387f6ce311b169a825772f54d295
32-
with:
33-
user: __token__
34-
password: ${{ secrets.PYPI_API_TOKEN }}
30+
uses: rye publish --token "${{ secrets.PYPI_API_TOKEN }}" --yes

0 commit comments

Comments
 (0)