зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-04 06:45:50 +03:00
chore: refresh GitHub repository setup (#23)
* chore: refresh GitHub repository setup * chore: align CI with Rust 1.88 MSRV
Этот коммит содержится в:
16
.github/workflows/release.yml
поставляемый
16
.github/workflows/release.yml
поставляемый
@@ -13,6 +13,7 @@ on:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: release-main
|
||||
@@ -23,13 +24,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
environment: release
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: dtolnay/rust-toolchain@1.88.0
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- uses: Swatinem/rust-cache@v2.9.1
|
||||
|
||||
- name: Read version and tag
|
||||
id: meta
|
||||
@@ -65,11 +66,16 @@ jobs:
|
||||
cargo package
|
||||
cargo test
|
||||
|
||||
- name: Authenticate with crates.io
|
||||
if: steps.tag.outputs.exists == 'false'
|
||||
id: auth
|
||||
uses: rust-lang/crates-io-auth-action@v1
|
||||
|
||||
- name: Publish to crates.io
|
||||
if: steps.tag.outputs.exists == 'false'
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
run: cargo publish --locked --token "$CARGO_REGISTRY_TOKEN"
|
||||
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
|
||||
run: cargo publish --locked
|
||||
|
||||
- name: Create and push tag
|
||||
if: steps.tag.outputs.exists == 'false'
|
||||
|
||||
Ссылка в новой задаче
Block a user