Skip to content

Commit 9685d69

Browse files
committed
add workflow for publishing to pypi + update version to 0.1.0
1 parent 0f7ed05 commit 9685d69

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

.github/workflows/pypi_publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish Package to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
build-and-publish:
12+
name: Build and Publish to PyPI
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: '3.13'
23+
24+
- name: Upgrade pip and install build tools
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install build
28+
29+
- name: Build the package
30+
run: python -m build
31+
32+
- name: Publish to PyPI
33+
uses: pypa/gh-action-pypi-publish@release/v1
34+
with:
35+
password: ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "dora-utils"
7-
version = "0.0.1"
7+
version = "0.1.0"
88
readme = "README.md"
99
license = { file = "LICENSE" }
1010
authors = [

0 commit comments

Comments
 (0)