Skip to content

Commit bc97d3b

Browse files
committed
Create github action to build package and push up to PyPi
1 parent 8d93618 commit bc97d3b

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
release:
3+
types: [published]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
release-build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: "3.x"
16+
- name: Build release distributions
17+
run: |
18+
python -m pip install build
19+
python -m build
20+
- name: Publish release distributions to PyPI
21+
uses: pypa/gh-action-pypi-publish@6f7e8d9c0b1a2c3d4e5f6a7b8c9d0e1f2a3b4c5d

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- uses: actions/setup-python@v5
1818
with:
1919
cache: 'pip'
20+
python-version: "3.x"
2021
- run: |
2122
python -m pip install --upgrade pip
2223
python -m pip install .[dev]

0 commit comments

Comments
 (0)