Skip to content

Commit 0d848f7

Browse files
authored
Update python-publish.yml
1 parent 82d35a4 commit 0d848f7

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/python-publish.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,23 @@ jobs:
2222
permissions:
2323
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
2424
steps:
25-
# retrieve your distributions here
25+
- name: Check out the repository
26+
uses: actions/checkout@v2
27+
28+
- name: Set up Python
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: '3.x'
32+
33+
- name: Install dependencies
34+
run: |
35+
python -m pip install --upgrade pip
36+
pip install build
37+
38+
- name: Build the package
39+
run: python -m build
2640

2741
- name: Publish package distributions to PyPI
2842
uses: pypa/gh-action-pypi-publish@release/v1
2943
with:
30-
attestations: false
44+
attestations: false

0 commit comments

Comments
 (0)