File tree Expand file tree Collapse file tree 3 files changed +55
-9
lines changed Expand file tree Collapse file tree 3 files changed +55
-9
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v*
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+
14
+ - id : python
15
+ uses : actions/setup-python@v2
16
+ with :
17
+ python-version : 3.10
18
+ architecture : " x64"
19
+
20
+ - uses : Gr1N/setup-poetry@v7
21
+
22
+ - id : poetry-cache
23
+ run : echo "::set-output name=dir::$(poetry config virtualenvs.path)"
24
+
25
+ - uses : actions/cache@v2
26
+ with :
27
+ path : ${{ steps.poetry-cache.outputs.dir }}
28
+ key : ${{ runner.os }}-poetry-${{ steps.python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
29
+
30
+ - run : poetry install -E all
31
+
32
+ - run : |
33
+ echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
34
+
35
+ - name : Build and Publish Package
36
+ run : |
37
+ poetry build
38
+ poetry publish -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.PYPI_PASSWORD}}
39
+ gh release upload --clobber ${{ env.TAG_NAME }} dist/*.tar.gz dist/*.whl
40
+ env :
41
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " GitHubKit"
3
- version = " 0.4.2 "
3
+ version = " 0.5.0 "
4
4
description = " GitHub SDK for Python"
5
5
authors = [" yanyongyu <yyy@yyydl.top>" ]
6
6
license = " MIT"
@@ -32,6 +32,7 @@ openapi-schema-pydantic = "^1.2.4"
32
32
[tool .poetry .extras ]
33
33
app = [" PyJWT" , " cryptography" ]
34
34
jwt = [" PyJWT" , " cryptography" ]
35
+ all = [" PyJWT" , " cryptography" ]
35
36
36
37
[tool .black ]
37
38
line-length = 88
You can’t perform that action at this time.
0 commit comments