This repository was archived by the owner on Sep 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-24
lines changed
Expand file tree Collapse file tree 1 file changed +16
-24
lines changed Original file line number Diff line number Diff line change 2020 with :
2121 github_token : ${{ secrets.GITHUB_TOKEN }}
2222 tags : true
23+ - name : Set up Python
24+ uses : actions/setup-python@v2
25+ with :
26+ python-version : " 3.x"
27+ - name : Install dependencies
28+ run : |
29+ python -m pip install --upgrade pip
30+ pip install build
31+ - name : Build package
32+ run : python -m build
33+ - name : Publish package
34+ uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
35+ with :
36+ user : __token__
37+ password : ${{ secrets.PYPI_API_TOKEN }}
2338
2439 release :
2540 needs : [build]
3752 env :
3853 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3954 with :
40- tag_name : ${{ needs.build.outputs.new_tag }}
55+ tag_name : v ${{ needs.build.outputs.new_tag }}
4156 release_name : v${{ needs.build.outputs.new_tag }}
4257 body : |
4358 ${{ steps.Changelog.outputs.changelog }}
4459 draft : false
4560 prerelease : false
46-
47- publish :
48- needs : [build, release]
49- runs-on : ubuntu-latest
50- steps :
51- - uses : actions/checkout@v2
52- with :
53- ref : ${{ needs.build.outputs.new_tag }}
54- - name : Set up Python
55- uses : actions/setup-python@v2
56- with :
57- python-version : " 3.x"
58- - name : Install dependencies
59- run : |
60- python -m pip install --upgrade pip
61- pip install build
62- - name : Build package
63- run : python -m build
64- - name : Publish package
65- uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
66- with :
67- user : __token__
68- password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments