File tree Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,24 @@ on: push
5
5
jobs :
6
6
build-n-publish :
7
7
name : Build and publish Python 🐍 distributions 📦 to PyPI
8
- runs-on : ubuntu-18.04
8
+
9
+ runs-on : ubuntu-latest
10
+
9
11
steps :
10
- - uses : actions/checkout@master
11
- - name : Set up Python 3.10
12
- uses : actions/setup-python@v1
12
+ - uses : actions/checkout@v2
13
+
14
+ - name : Setup Python
15
+ uses : actions/setup-python@v2
13
16
with :
14
- python-version : 3.10
15
- - name : Install pypa/build
17
+ python-version : ' 3.10.4'
18
+
19
+ - name : Install Requirements
16
20
run : >-
17
21
python -m
18
22
pip install
19
23
build
20
24
--user
25
+
21
26
- name : Build a binary wheel and a source tarball
22
27
run : >-
23
28
python -m
26
31
--wheel
27
32
--outdir dist/
28
33
.
29
- - name : Publish distribution 📦 to PyPI
34
+ - name : Release to PyPI
30
35
if : startsWith(github.ref, 'refs/tags')
31
- uses : pypa/gh-action-pypi-publish@master
36
+ uses : pypa/gh-action-pypi-publish@release/v1
32
37
with :
38
+ user : __token__
33
39
password : ${{ secrets.PYPI_API_TOKEN }}
40
+
41
+ - name : Release to GitHub
42
+ uses : softprops/action-gh-release@v1
43
+ if : startsWith(github.ref, 'refs/tags/')
44
+ with :
45
+ files : |
46
+ dist/*.whl
47
+ dist/*.tar.gz
You can’t perform that action at this time.
0 commit comments