Skip to content

Commit c8a6d42

Browse files
authored
👷 update ci
1 parent b5af7dd commit c8a6d42

File tree

3 files changed

+51
-2
lines changed

3 files changed

+51
-2
lines changed

.github/dependabot.yml

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

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
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 }}

.github/workflows/ruff.yml

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

0 commit comments

Comments
 (0)