Skip to content

Commit b39c6c1

Browse files
author
Jose Alonso Solis Lemus
committed
release_prep
1 parent 4a6545c commit b39c6c1

2 files changed

Lines changed: 45 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.10'
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install build twine
27+
28+
- name: Build package
29+
run: python -m build
30+
31+
- name: Check package
32+
run: twine check dist/*
33+
34+
- name: Publish to PyPI
35+
env:
36+
TWINE_USERNAME: __token__
37+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
38+
run: twine upload dist/*

pyproject.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
[build-system]
23
requires = ["setuptools>=61.0"]
34
build-backend = "setuptools.build_meta"
@@ -53,14 +54,14 @@ dev = [
5354
]
5455

5556
[project.urls]
56-
Homepage = "[Keep your GitHub URL from current file]"
57-
Documentation = "[Your GitHub URL]/blob/main/docs/API_reference.md"
58-
Repository = "[Keep your GitHub URL from current file]"
59-
"Bug Tracker" = "[Your GitHub URL]/issues"
60-
Changelog = "[Your GitHub URL]/releases"
57+
Homepage = "https://github.com/OpenHeartDevelopers/pycemrg"
58+
"Bug Tracker" = "https://github.com/OpenHeartDevelopers/pycemrg/issues"
59+
Documentation = "https://github.com/OpenHeartDevelopers/pycemrg/blob/main/docs/API_reference.md"
60+
Repository = "https://github.com/OpenHeartDevelopers/pycemrg"
61+
Changelog = "https://github.com/OpenHeartDevelopers/pycemrg/releases"
6162

6263
[tool.setuptools.packages.find]
6364
where = ["src"]
6465

6566
[project.scripts]
66-
pycemrg = "pycemrg.cli:main"
67+
pycemrg = "pycemrg.cli:main"

0 commit comments

Comments
 (0)