teatui/.github/workflows/release.yml
dependabot[bot] 5e31cb2654
build(deps): bump actions/checkout from 5 to 6 (#6)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-01 17:42:16 +01:00

32 lines
977 B
YAML

name: Publish to crates.io
on:
release:
types: [created]
env:
CARGO_TERM_COLOR: always
jobs:
publish-crate:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Set up Git
run: |
git config --global user.email "49537445+JasterV@users.noreply.github.com"
git config --global user.name "JasterV"
- name: Install cargo-edit
run: |
cargo install cargo-edit
- name: Update crate version
id: update-version
run: |
cargo set-version -p teatui $GITHUB_REF_NAME
- name: Publish crate
run: |
# Publish the crate using the updated version from the previous step
cargo publish -p teatui --allow-dirty --token ${{ secrets.CRATES_IO_TOKEN }}