File tree Expand file tree Collapse file tree 2 files changed +47
-4
lines changed Expand file tree Collapse file tree 2 files changed +47
-4
lines changed Original file line number Diff line number Diff line change 1
- name-template : ' Version $NEXT_PATCH_VERSION🌈 '
1
+ name-template : ' Version $NEXT_PATCH_VERSION'
2
2
tag-template : ' v$NEXT_PATCH_VERSION'
3
3
categories :
4
- - title : ' 🚀 Features'
4
+ - title : ' Features'
5
5
labels :
6
6
- ' feature'
7
7
- ' enhancement'
@@ -10,9 +10,9 @@ categories:
10
10
- ' fix'
11
11
- ' bugfix'
12
12
- ' bug'
13
- - title : ' 🧰 Maintenance'
13
+ - title : ' Maintenance'
14
14
label : ' chore'
15
- change-template : ' - $TITLE @$AUTHOR (#$NUMBER)'
15
+ change-template : ' - $TITLE (#$NUMBER)'
16
16
exclude-labels :
17
17
- ' skip-changelog'
18
18
template : |
Original file line number Diff line number Diff line change
1
+ name : Publish Pypi
2
+ on :
3
+ release :
4
+ types : [ published ]
5
+
6
+ jobs :
7
+ pytest :
8
+ name : Publish to PyPi
9
+ runs-on : ubuntu-latest
10
+ env :
11
+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
12
+ steps :
13
+ - uses : actions/checkout@master
14
+ - name : Set up Python 3.7
15
+ uses : actions/setup-python@v1
16
+ with :
17
+ python-version : 3.7
18
+
19
+ - name : Install Poetry
20
+
21
+
22
+ - name : Cache Poetry virtualenv
23
+ uses : actions/cache@v1
24
+ id : cache
25
+ with :
26
+ path : ~/.virtualenvs
27
+ key : poetry-${{ hashFiles('**/poetry.lock') }}
28
+ restore-keys : |
29
+ poetry-${{ hashFiles('**/poetry.lock') }}
30
+
31
+ - name : Set Poetry config
32
+ run : |
33
+ poetry config virtualenvs.in-project false
34
+ poetry config virtualenvs.path ~/.virtualenvs
35
+
36
+ - name : Install Dependencies
37
+ run : poetry install
38
+ if : steps.cache.outputs.cache-hit != 'true'
39
+
40
+ - name : Publish to PyPI
41
+ if : github.event_name == 'release'
42
+ run : |
43
+ poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} --build
You can’t perform that action at this time.
0 commit comments