File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change 1
-
2
- ---
3
1
name : Release
4
2
5
- on : [push]
3
+ on :
4
+ pull_request :
5
+ push :
6
+ # branches:
7
+ # - main
8
+ # release:
9
+ # types:
10
+ # - published
6
11
7
12
jobs :
8
13
release :
@@ -18,11 +23,20 @@ jobs:
18
23
- uses : actions/setup-python@v5
19
24
- name : Install dependencies
20
25
run : |
21
- python -m pip install -U pip wheel setuptools setuptools-scm twine
22
- # python -m pip install -U pip wheel "setuptools<66.0.0" setuptools-scm twine
26
+ python -m pip install -U pip wheel setuptools setuptools-scm twine build check-manifest
23
27
- name : Build distributions
24
- run : python setup.py sdist bdist_wheel
28
+ run : python -m build --sdist --wheel . --outdir dist
29
+
30
+ - name : CheckFiles
31
+ run : |
32
+ ls dist
33
+ check-manifest --verbose
34
+
35
+ - name : Test wheels
36
+ run : |
37
+ cd dist && python -m pip install *.whl
38
+ python -m twine check *
25
39
26
40
- name : Publish to PyPI
27
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
41
+ if : success() && github.event_name == 'release'
28
42
uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments