File tree 1 file changed +27
-12
lines changed
1 file changed +27
-12
lines changed Original file line number Diff line number Diff line change 8
8
name : Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
9
9
runs-on : ubuntu-18.04
10
10
11
- steps :
12
- - uses : actions/checkout@master
13
- - name : Set up Python 3.6
14
- uses : actions/setup-python@v1
15
- with :
16
- python-version : 3.6
11
+ steps :
12
+ - uses : actions/checkout@master
13
+ - name : Set up Python 3.6
14
+ uses : actions/setup-python@v1
15
+ with :
16
+ python-version : 3.6
17
17
18
- - name : Publish package
19
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
20
- uses : pypa/gh-action-pypi-publish@release/v1
21
- with :
22
- user : __token__
23
- password : ${{ secrets.PYPI_API_TOKEN }}
18
+ - name : Install pypa/build
19
+ run : >-
20
+ python -m
21
+ pip install
22
+ build
23
+ --user
24
+ - name : Build a binary wheel and a source tarball
25
+ run : >-
26
+ python -m
27
+ build
28
+ --sdist
29
+ --wheel
30
+ --outdir dist/
31
+ .
32
+
33
+ - name : Publish package
34
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
35
+ uses : pypa/gh-action-pypi-publish@release/v1
36
+ with :
37
+ user : __token__
38
+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments