Skip to content

Commit 7523643

Browse files
Testing (#98)
1 parent 15c1d09 commit 7523643

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Upload Python Package to PyPI when a Release is Created
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [created]
7+
8+
jobs:
9+
build_and_test:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os:
15+
- ubuntu-20.04
16+
- macos-12
17+
- windows-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: "3.x"
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install setuptools wheel
28+
- name: build
29+
run: |
30+
python -m build
31+
- name: package
32+
run: |
33+
python setup.py sdist bdist_wheel

0 commit comments

Comments
 (0)