File tree Expand file tree Collapse file tree 2 files changed +27
-46
lines changed Expand file tree Collapse file tree 2 files changed +27
-46
lines changed   Load Diff This file was deleted. 
Original file line number Diff line number Diff line change 1- name : version 
1+ name : Bump  version
22on :
33 push :
44 branches :
55 - master 
66jobs :
7-  build :
7+  versioning :
88 runs-on : ubuntu-latest 
99 steps :
1010 - uses : actions/checkout@v2 
11+ 
1112 - name : Bump version and push tag 
1213 id : tag_version 
1314 uses : mathieudutour/github-tag-action@v6.0 
1415 with :
1516 github_token : ${{ secrets.GITHUB_TOKEN }} 
17+ 
1618 - name : Create a GitHub release 
1719 uses : ncipollo/release-action@v1 
1820 with :
1921 tag : ${{ steps.tag_version.outputs.new_tag }} 
2022 name : Release ${{ steps.tag_version.outputs.new_tag }} 
21-  body : ${{ steps.tag_version.outputs.changelog }} 
23+  body : ${{ steps.tag_version.outputs.changelog }} 
24+ 
25+  - name : Set up Python 
26+  uses : actions/setup-python@v3 
27+  with :
28+  python-version : ' 3.x' 
29+ 
30+  - name : Install dependencies 
31+  run : | 
32+  python -m pip install --upgrade pip 
33+  pip install build twine 
34+  pip install -r requirements.txt 
35+ 
36+   - name : Build package 
37+  env :
38+  RELEASE_VERSION : ${{ steps.tag_version.outputs.new_tag }} 
39+  run : python -m build -w -s 
40+ 
41+  - name : Publish package 
42+  uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 
43+  with :
44+  user : __token__ 
45+  password : ${{ secrets.PYPI_API_TOKEN }} 
                                 You can’t perform that action at this time. 
               
                  
0 commit comments