Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TOwInOK authored Aug 11, 2024
1 parent 49bec70 commit a00a7e5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
toolchain: stable

- name: Job
run: cargo check -r -F full --locked
run: cargo publish --dry-run -F full

Clippy:
needs:
Expand Down Expand Up @@ -121,8 +121,10 @@ jobs:

- name: Save version
run: |
version=$(grep 'version =' Cargo.toml | head -n 1 | cut -d '"' -f 2)
echo $version
# Извлекаем версию из Cargo.toml
version=$(grep '^version =' Cargo.toml | head -n 1 | cut -d '"' -f 2)
echo "version=$version" >> $GITHUB_ENV
echo "Extracted version: $version"
- name: Configure Git
run: |
Expand All @@ -132,7 +134,9 @@ jobs:
- name: Make tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ env.version }}
run: |
git tag "v$version"
git push origin "v$version"
# Создаём и пушим тег
git tag "v$VERSION"
git push origin "v$VERSION"

0 comments on commit a00a7e5

Please sign in to comment.