Skip to content

Commit 50615d5

Browse files
authored
Update python-publish.yml
1 parent 2258724 commit 50615d5

1 file changed

Lines changed: 11 additions & 31 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,17 @@
77
# documentation.
88

99
name: Upload Python Package
10-
11-
runs:
12-
using: 'node20'
13-
main: 'main.js'
14-
15-
on:
16-
release:
17-
types: [published]
18-
19-
permissions:
20-
contents: read
21-
2210
jobs:
23-
deploy:
24-
11+
pypi-publish:
12+
name: Upload release to PyPI
2513
runs-on: ubuntu-latest
26-
14+
environment:
15+
name: pypi
16+
url: https://pypi.org/p/PyAFBF
17+
permissions:
18+
id-token: ${{ secrets.TOKEN_PYPI }}
2719
steps:
28-
- uses: actions/checkout@v3
29-
- name: Set up Python
30-
uses: actions/setup-python@v3
31-
with:
32-
python-version: '3.x'
33-
- name: Install dependencies
34-
run: |
35-
python -m pip install --upgrade pip
36-
pip install build
37-
- name: Build package
38-
run: python -m build
39-
- name: Publish package
40-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
41-
with:
42-
user: __token__
43-
password: ${{ secrets.TOKEN_PYPI }}
20+
# retrieve your distributions here
21+
22+
- name: PyAFBF
23+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)