Skip to content

Commit dcb8be3

Browse files
committed
ci: update to support create release on github
1 parent 3f916e5 commit dcb8be3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Upload Python Package
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
jobs:
99
deploy:
@@ -13,10 +13,13 @@ jobs:
1313
with:
1414
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
1515
fetch-depth: 0
16+
- name: Set output
17+
id: vars
18+
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
1619
- name: Set up Python
1720
uses: actions/setup-python@v4
1821
with:
19-
python-version: '3.7'
22+
python-version: '3.x'
2023
- name: Install dependencies
2124
run: |
2225
python -m pip install -U pip poetry mkdocs mkdocs-material
@@ -28,3 +31,7 @@ jobs:
2831
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2932
run: |
3033
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 }}

0 commit comments

Comments
 (0)