Skip to content

Commit

Permalink
0.4.1.rc-0
Browse files Browse the repository at this point in the history
  • Loading branch information
cottinisimone committed Dec 18, 2023
1 parent 48e0c81 commit 1f70d19
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,18 @@ jobs:
with:
tool: [email protected]
- uses: taiki-e/install-action@cargo-make
- name: login
run: cargo login "$CARGO_AUTH_KEY"
- name: Get version
run: |
POSITIONAL_VERSION=$(grep -m1 '^version' positional/Cargo.toml | cut -d'"' -f2)
POSITIONAL_DERIVE_VERSION=$(grep -m1 '^version' positional_derive/Cargo.toml | cut -d'"' -f2)
echo "POSITIONAL_VERSION=$POSITIONAL_VERSION" >> $GITHUB_ENV
echo "POSITIONAL_DERIVE_VERSION=$POSITIONAL_DERIVE_VERSION" >> $GITHUB_ENV
- name: Check version
if: ${{ github.event.release.tag_name != env.POSITIONAL_VERSION || github.event.release.tag_name != env.POSITIONAL_DERIVE_VERSION }}
run: |
echo "Github ref tag [${{ github.event.release.tag_name }}] is different from positional Cargo.toml version [${{ env.POSITIONAL_VERSION }}] or positional_derive Cargo.toml version [${{ env.POSITIONAL_DERIVE_VERSION }}]"
exit 1
- run: cargo login "$CARGO_AUTH_KEY"
env:
CARGO_AUTH_KEY: ${{ secrets.CARGO_AUTH_KEY }}
- run: cargo make release
2 changes: 1 addition & 1 deletion positional/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = "MIT"
name = "positional"
readme = "../README.md"
repository = "https://github.com/primait/positional.rs"
version = "0.4.1"
version = "0.4.1-rc.0"

[[bench]]
harness = false
Expand Down
2 changes: 1 addition & 1 deletion positional_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description = "Macros for positional crate"
edition = "2021"
license = "MIT"
name = "positional_derive"
version = "0.4.1"
version = "0.4.1-rc.0"
documentation = "https://docs.rs/positional"

[lib]
Expand Down

0 comments on commit 1f70d19

Please sign in to comment.