Skip to content

Commit 0e2cc08

Browse files
authored
🔖 bump version 0.5.0
1 parent 6cbaa44 commit 0e2cc08

File tree

3 files changed

+55
-9
lines changed

3 files changed

+55
-9
lines changed

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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 }}

poetry.lock

Lines changed: 12 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "GitHubKit"
3-
version = "0.4.2"
3+
version = "0.5.0"
44
description = "GitHub SDK for Python"
55
authors = ["yanyongyu <yyy@yyydl.top>"]
66
license = "MIT"
@@ -32,6 +32,7 @@ openapi-schema-pydantic = "^1.2.4"
3232
[tool.poetry.extras]
3333
app = ["PyJWT", "cryptography"]
3434
jwt = ["PyJWT", "cryptography"]
35+
all = ["PyJWT", "cryptography"]
3536

3637
[tool.black]
3738
line-length = 88

0 commit comments

Comments
 (0)