We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15c1d09 commit 7523643Copy full SHA for 7523643
.github/workflows/release.yml
@@ -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
30
+ python -m build
31
+ - name: package
32
33
+ python setup.py sdist bdist_wheel
0 commit comments