update release workflow

This commit is contained in:
JasterV 2025-08-19 23:08:52 +02:00
commit c4f3cf4759

View file

@ -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 }}