mirror of
https://codeberg.org/JasterV/teatui.git
synced 2026-04-26 18:10:03 +00:00
update release workflow
This commit is contained in:
parent
d6e5e7a063
commit
c4f3cf4759
1 changed files with 2 additions and 7 deletions
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
|
@ -25,13 +25,8 @@ jobs:
|
||||||
- name: Update crate version
|
- name: Update crate version
|
||||||
id: update-version
|
id: update-version
|
||||||
run: |
|
run: |
|
||||||
# Get the release tag (e.g., v1.2.3) and strip the 'v' prefix
|
cargo set-version -p ratatui-elm $GITHUB_REF_NAME
|
||||||
RELEASE_TAG="${{ github.ref }}"
|
|
||||||
VERSION=${RELEASE_TAG#refs/tags/v}
|
|
||||||
|
|
||||||
# Use cargo-edit to update the version of the ratatui-elm package
|
|
||||||
cargo set-version --package ratatui-elm $VERSION
|
|
||||||
- name: Publish crate
|
- name: Publish crate
|
||||||
run: |
|
run: |
|
||||||
# Publish the crate using the updated version from the previous step
|
# Publish the crate using the updated version from the previous step
|
||||||
cargo publish --package ratatui-elm --token ${{ secrets.CRATES_IO_TOKEN }}
|
cargo publish -p ratatui-elm --token ${{ secrets.CRATES_IO_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue