1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-04 06:45:50 +03:00

chore: ratatui 0.30 maintenance + collaboration baseline (#1)

Этот коммит содержится в:
srothgan
2026-02-18 11:46:03 +01:00
коммит произвёл GitHub
родитель 4d18622eea
Коммит 4689076df5
20 изменённых файлов: 289 добавлений и 192 удалений

47
.github/workflows/release.yml поставляемый Обычный файл
Просмотреть файл

@@ -0,0 +1,47 @@
name: Release
on:
workflow_dispatch:
inputs:
version:
description: "Cargo.toml version to release (for example 0.7.0)"
required: true
type: string
publish:
description: "Publish to crates.io (false runs dry validation only)"
required: true
default: false
type: boolean
permissions:
contents: read
jobs:
release:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Verify requested version matches Cargo.toml
shell: bash
run: |
actual="$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n1)"
if [[ -z "$actual" ]]; then
echo "Could not parse version from Cargo.toml"
exit 1
fi
if [[ "$actual" != "${{ inputs.version }}" ]]; then
echo "Requested version ${{ inputs.version }} does not match Cargo.toml version $actual"
exit 1
fi
- name: Validate package
run: cargo package
- name: Run full test suite
run: cargo test
- name: Publish to crates.io
if: ${{ inputs.publish }}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish --locked --token "$CARGO_REGISTRY_TOKEN"