feat(ci): release notify (#94)
This commit is contained in:
@@ -20,15 +20,15 @@ jobs:
|
||||
include:
|
||||
- task: format
|
||||
do_sync: true
|
||||
command: uv run --no-sync ruff format --check --diff
|
||||
command: uv run --no-sync ruff format --check --diff src tests
|
||||
sync_args: --no-install-project
|
||||
- task: ruff
|
||||
do_sync: true
|
||||
command: uv run --no-sync ruff check . --output-format=github
|
||||
command: uv run --no-sync ruff check src tests --output-format=github
|
||||
sync_args: --no-install-project
|
||||
- task: ty
|
||||
do_sync: true
|
||||
command: uv run --no-sync ty check .
|
||||
command: uv run --no-sync ty check src tests
|
||||
sync_args: --no-install-project
|
||||
- task: pytest
|
||||
do_sync: true
|
||||
|
||||
@@ -95,6 +95,15 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v7
|
||||
with:
|
||||
python-version: "3.14"
|
||||
enable-cache: true
|
||||
|
||||
- name: Download dist artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
@@ -107,3 +116,11 @@ jobs:
|
||||
generate_release_notes: true
|
||||
files: |
|
||||
dist/*
|
||||
|
||||
- name: Notify release
|
||||
run: uv run scripts/release_notify.py
|
||||
env:
|
||||
REPO: ${{ github.repository }}
|
||||
TAG_NAME: ${{ github.ref_name }}
|
||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||
|
||||
Reference in New Issue
Block a user