Skip to content

Commit

Permalink
Fixed release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks-D committed Dec 19, 2023
1 parent c62676d commit 162fbc9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
run: |
PUSHED_TAG=${GITHUB_REF##*/}
CURR_VER=$( grep version ./crates/retrying-core/Cargo.toml | head -n 1 | awk '{print $3}' | tr -d '"' )
if [[ "${PUSHED_TAG}" != "v${CURR_VER}" ]]; then
echo "Cargo metadata (/crates/retrying/Cargo.toml) has version set to ${CURR_VER}, but got pushed tag ${PUSHED_TAG}."
if [[ "${PUSHED_TAG}" != "retrying-v${CURR_VER}" ]]; then
echo "Cargo metadata (./crates/retrying-core/Cargo.toml) has version set to ${CURR_VER}, but got pushed tag ${PUSHED_TAG}."
exit 1
fi
- name: compare git tag with cargo metadata for retrying
run: |
PUSHED_TAG=${GITHUB_REF##*/}
CURR_VER=$( grep version ./crates/retrying/Cargo.toml | head -n 1 | awk '{print $3}' | tr -d '"' )
if [[ "${PUSHED_TAG}" != "v${CURR_VER}" ]]; then
echo "Cargo metadata (/crates/retrying/Cargo.toml) has version set to ${CURR_VER}, but got pushed tag ${PUSHED_TAG}."
if [[ "${PUSHED_TAG}" != "retrying-v${CURR_VER}" ]]; then
echo "Cargo metadata (./crates/retrying/Cargo.toml) has version set to ${CURR_VER}, but got pushed tag ${PUSHED_TAG}."
exit 1
fi
Expand All @@ -49,5 +49,5 @@ jobs:
- uses: actions/checkout@v3
# - name: cargo publish retrying-core to crates.io
# run: cargo +stable publish --token $CARGO_REGISTRY_TOKEN --all-features -p retrying-core
- name: cargo publish retrying to crates.io
run: cargo +stable publish --token $CARGO_REGISTRY_TOKEN --all-features -p retrying
- name: cargo publish retrying to crates.io (default)
run: cargo +stable publish --token $CARGO_REGISTRY_TOKEN -p retrying

0 comments on commit 162fbc9

Please sign in to comment.