Skip to content

Commit

Permalink
👷 update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Jan 1, 2024
1 parent b5af7dd commit c8a6d42
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
groups:
actions:
patterns:
- "*"

- package-ecosystem: github-actions
directory: "/.github/actions/setup-python"
schedule:
interval: daily
groups:
actions:
patterns:
- "*"
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v3

Expand All @@ -25,10 +28,15 @@ jobs:
if: steps.version.outputs.VERSION != steps.version.outputs.TAG_VERSION
run: exit 1

- name: Build and Publish Package
- name: Build Package
run: |
poetry build
poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- name: Publish package to GitHub
run: |
gh release upload --clobber ${{ steps.version.outputs.TAG_NAME }} dist/*.tar.gz dist/*.whl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Ruff Lint

on:
push:
branches:
- master
pull_request:
paths:
- "nonebot/**"
- "codegen/**"
- "poetry.lock"
- "pyproject.toml"

jobs:
ruff:
name: Ruff Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run Ruff Lint
uses: chartboost/ruff-action@v1

0 comments on commit c8a6d42

Please sign in to comment.