File tree Expand file tree Collapse file tree 3 files changed +28
-10
lines changed Expand file tree Collapse file tree 3 files changed +28
-10
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,36 @@ jobs:
54
54
python-version : ${{ matrix.python-version }}
55
55
- name : Install dependencies
56
56
run : make install
57
- - name : test version
58
- run : make test-version
57
+ - name : check if we can publish
58
+ id : check
59
+ run : echo ::set-output name=release::$(make test-version)
59
60
- name : build python bundle
61
+ if : steps.check.outputs.release == 'yes'
60
62
run : " make bundle${{ matrix.python-version }}"
61
63
- name : release to pypi
64
+ if : steps.check.outputs.release == 'yes'
62
65
run : make release-pypi
66
+
67
+ github :
68
+ runs-on : ubuntu-latest
69
+ env :
70
+ PYTHON_ENV : ci
71
+ PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
72
+ GITHUB_TOKEN : ${{ secrets.QMBOT_GITHUB_TOKEN }}
73
+ needs : release
74
+ if : github.ref == 'refs/heads/master'
75
+
76
+ steps :
77
+ - uses : actions/checkout@v2
78
+ - name : Set up Python ${{ matrix.python-version }}
79
+ uses : actions/setup-python@v2
80
+ with :
81
+ python-version : 3.8
82
+ - name : Install dependencies
83
+ run : make install
84
+ - name : check if we can publish
85
+ id : check
86
+ run : echo ::set-output name=release::$(make test-version)
63
87
- name : release to github
64
- if : matrix.python-version == '3.8 '
88
+ if : steps.check.outputs.release == 'yes '
65
89
run : make release-github
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ test-lint: ## run linters
46
46
47
47
48
48
test-version : # # validate version
49
- @agilekit git validate
49
+ @agilekit git validate --yes-no
50
50
51
51
52
52
bundle3.6 : # # build python 3.6 bundle
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments