@@ -2,37 +2,36 @@ name: CD
22
33on :
44 push :
5- branches : [ master, next ]
5+ branches : [master, next]
66
77jobs :
88 build :
99 runs-on : ubuntu-latest
1010 steps :
11- - name : Checkout
12- uses : actions/checkout@v4
13- with :
14- fetch-depth : 0
15- token : ${{ secrets.TOKEN }}
16- - name : Python Semantic Release
17- uses : python-semantic-release/python-semantic-release@master
18- id : semantic-release
19- with :
20- github_token : ${{ secrets.TOKEN }}
21- - name : Build
22- run : |
23- python3 -m pip install --upgrade build
24- python3 -m build
25- - name : Upload
26- if : steps.semantic-release.outputs.released == 'true'
27- run : |
28- python3 -m pip install twine
29- python3 -m twine upload --repository pypi dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}
30- - name : Merge master -> next
31- if : github.ref == 'ref/head/master'
32- uses : devmasx/merge-branch@master
33- with :
34- type : now
35- from_branch : master
36- target_branch : next
37- github_token : ${{ github.token }}
38-
11+ - name : Checkout
12+ uses : actions/checkout@v4
13+ with :
14+ fetch-depth : 0
15+ token : ${{ secrets.TOKEN }}
16+ - name : Python Semantic Release
17+ uses : python-semantic-release/python-semantic-release@master
18+ id : semantic-release
19+ with :
20+ github_token : ${{ secrets.TOKEN }}
21+ - name : Build
22+ run : |
23+ python3 -m pip install --upgrade build
24+ python3 -m build
25+ - name : Upload
26+ if : steps.semantic-release.outputs.released == 'true'
27+ run : |
28+ python3 -m pip install twine
29+ python3 -m twine upload --repository pypi dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}
30+ - name : Merge master -> next
31+ if : github.ref == 'refs/heads/master'
32+ uses : devmasx/merge-branch@master
33+ with :
34+ type : now
35+ from_branch : master
36+ target_branch : next
37+ github_token : ${{ github.token }}
0 commit comments