Skip to content

Commit ee41396

Browse files
committed
GHA: Add workflow to build release assets
1 parent 83fd2ce commit ee41396

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: cd-sdist
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
workflow_dispatch:
8+
9+
jobs:
10+
11+
sdist:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: Setup Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: 3
23+
24+
- name: Upgrade pip
25+
run: python -m pip install -U pip
26+
27+
- name: Install build and twine
28+
run: python -m pip install -U build twine
29+
30+
- name: Build distribution
31+
run: python -m build
32+
33+
- name: Check source distribution
34+
run: python -m twine check dist/pyspod-*.tar.gz
35+
36+
- name: Check binary distribution
37+
run: python -m twine check dist/pyspod-*.whl
38+
39+
- name: Upload source distributionx
40+
uses: actions/upload-artifact@v3
41+
with:
42+
name: release
43+
path: |
44+
dist/*.tar.gz
45+
dist/*.whl

0 commit comments

Comments
 (0)