File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Upload Python Package
3
3
on :
4
4
push :
5
5
tags :
6
- - ' v* '
6
+ - " v* "
7
7
8
8
jobs :
9
9
deploy :
@@ -13,10 +13,13 @@ jobs:
13
13
with :
14
14
token : ' ${{ secrets.PERSONAL_ACCESS_TOKEN }}'
15
15
fetch-depth : 0
16
+ - name : Set output
17
+ id : vars
18
+ run : echo ::set-output name=tag::${GITHUB_REF#refs/*/}
16
19
- name : Set up Python
17
20
uses : actions/setup-python@v4
18
21
with :
19
- python-version : ' 3.7 '
22
+ python-version : ' 3.x '
20
23
- name : Install dependencies
21
24
run : |
22
25
python -m pip install -U pip poetry mkdocs mkdocs-material
28
31
PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
29
32
run : |
30
33
poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD
34
+ - name : Create release Version
35
+ run : gh release create ${{ steps.vars.outputs.tag }} --generate-notes
36
+ env :
37
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments