File tree Expand file tree Collapse file tree 3 files changed +51
-2
lines changed
Expand file tree Collapse file tree 3 files changed +51
-2
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : github-actions
4+ directory : " /"
5+ schedule :
6+ interval : daily
7+ groups :
8+ actions :
9+ patterns :
10+ - " *"
11+
12+ - package-ecosystem : github-actions
13+ directory : " /.github/actions/setup-python"
14+ schedule :
15+ interval : daily
16+ groups :
17+ actions :
18+ patterns :
19+ - " *"
Original file line number Diff line number Diff line change 88jobs :
99 release :
1010 runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
13+ id-token : write
1114 steps :
1215 - uses : actions/checkout@v3
1316
@@ -25,10 +28,15 @@ jobs:
2528 if : steps.version.outputs.VERSION != steps.version.outputs.TAG_VERSION
2629 run : exit 1
2730
28- - name : Build and Publish Package
31+ - name : Build Package
2932 run : |
3033 poetry build
31- poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}
34+
35+ - name : Publish package to PyPI
36+ uses : pypa/gh-action-pypi-publish@release/v1
37+
38+ - name : Publish package to GitHub
39+ run : |
3240 gh release upload --clobber ${{ steps.version.outputs.TAG_NAME }} dist/*.tar.gz dist/*.whl
3341 env :
3442 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Ruff Lint
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ paths :
9+ - " nonebot/**"
10+ - " codegen/**"
11+ - " poetry.lock"
12+ - " pyproject.toml"
13+
14+ jobs :
15+ ruff :
16+ name : Ruff Lint
17+ runs-on : ubuntu-latest
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - name : Run Ruff Lint
22+ uses : chartboost/ruff-action@v1
You can’t perform that action at this time.
0 commit comments