Skip to content

Commit d085978

Browse files
committed
Update deploy_release.yaml
1 parent 92e744e commit d085978

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/deploy_release.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,24 @@ jobs:
1111

1212
runs-on: ubuntu-24.04
1313

14+
permissions:
15+
id-token: write # Required for trusted publishing
16+
contents: read
17+
1418
steps:
15-
- uses: actions/checkout@v1
19+
- uses: actions/checkout@v4
1620
with:
1721
fetch-depth: 20
1822

19-
- name: sdist
23+
- name: Set up Python
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: '3.13'
27+
28+
- name: Build distribution
2029
run: |
2130
pip install build
2231
python -m build --sdist .
2332
24-
- name: Publish a Python distribution to PyPI
25-
uses: pypa/gh-action-pypi-publish@master
26-
with:
27-
user: __token__
28-
password: ${{ secrets.pypi_password }}
33+
- name: Publish distribution to PyPI
34+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)