Skip to content

Commit 0d4f427

Browse files
authored
Create publish-to-pypi.yml
1 parent 5255320 commit 0d4f427

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/publish-to-pypi.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish Python Package to PyPI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
9+
build-and-publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: 3.9
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install build
24+
25+
- name: Build package
26+
run: python -m build
27+
28+
- name: Publish to PyPI
29+
uses: pypa/gh-action-pypi-publish@release/v1
30+
with:
31+
user: cortega
32+
password: ${{ secrets.rutificador }}

0 commit comments

Comments
 (0)