Skip to content

Commit 4fcfb66

Browse files
committed
add an action step to upload to the PyPI when a tag is submitted
1 parent 94a27c2 commit 4fcfb66

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/buildnPush.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ jobs:
1010
build-and-push:
1111
runs-on: ubuntu-latest
1212
steps:
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.12'
17+
- name: Build Python package
18+
run: |
19+
python -m pip install --upgrade build
20+
python -m build
21+
- name: Publish to PyPI
22+
uses: pypa/gh-action-pypi-publish@release/v1
23+
with:
24+
user: __token__
25+
password: ${{ secrets.PYPI_TOKEN }}
1326
- name: Checkout code
1427
uses: actions/checkout@v3
1528
- name: Set up Docker Buildx

0 commit comments

Comments
 (0)