Skip to content

Commit cd78240

Browse files
committed
upload wheel to artifacts
1 parent 7172af3 commit cd78240

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,26 @@ jobs:
6262
- name: Run pyright
6363
run: |
6464
pyright
65+
66+
create_wheel_and_sdist:
67+
runs-on: ubuntu-latest
68+
69+
steps:
70+
- uses: actions/checkout@v3
71+
- name: Set up Python
72+
uses: actions/setup-python@v4
73+
with:
74+
python-version: '3.13'
75+
architecture: x64
76+
- name: Install dependencies
77+
run: |
78+
python -m pip install --upgrade pip
79+
pip install setuptools wheel build
80+
- name: Build wheel and sdist
81+
run: |
82+
python -m build
83+
- name: Upload wheel and sdist as artifact
84+
uses: actions/upload-artifact@v4
85+
with:
86+
name: python-package-distributions
87+
path: dist/

.github/workflows/python-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- name: Set up Python
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v4
1919
with:
20-
python-version: '3.x'
20+
python-version: '3.13'
21+
architecture: x64
2122
- name: Install dependencies
2223
run: |
2324
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)