File tree 1 file changed +15
-10
lines changed
1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: github-actions
2
2
on : [push]
3
3
jobs :
4
4
check-pep8-compliance :
5
- runs-on : ubuntu-latest
5
+ runs-on : ubuntu-20.04
6
6
steps :
7
7
- uses : actions/checkout@v2
8
8
- name : Set up Python 3.7
@@ -11,18 +11,23 @@ jobs:
11
11
python-version : 3.7
12
12
- name : Install dependencies
13
13
run : |
14
- python -m pip install build --user --upgrade pip
14
+ python -m pip install --user --upgrade pip
15
15
pip install pycodestyle
16
16
- name : Validate PEP8 compliance
17
17
run : pycodestyle .
18
- - name : Build a binary wheel and a source tarball
19
- run : >-
20
- python -m
21
- build
22
- --sdist
23
- --wheel
24
- --outdir dist/
25
- .
18
+
19
+ publish-to-pypi :
20
+ need : [check-pep8-compliance]
21
+ runs-on : ubuntu-20.04
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+ - name : Set up Python 3.7
25
+ uses : actions/setup-python@v2
26
+ with :
27
+ python-version : 3.7
28
+ - name : Install dependencies
29
+ run : |
30
+ python -m pip install build --user --upgrade pip
26
31
- name : Publish 📦 to PyPI
27
32
if : startsWith(github.ref, 'refs/tags')
28
33
uses : pypa/gh-action-pypi-publish@master
You can’t perform that action at this time.
0 commit comments