Skip to content

Commit

Permalink
chore: update release workflow 9
Browse files Browse the repository at this point in the history
  • Loading branch information
slavik-pastushenko committed Nov 8, 2023
1 parent f7b7b6e commit 835275d
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ jobs:
with:
rust-version: stable

- name: Install cargo-release
run: cargo install cargo-release

- name: Create GitHub release & Publish to crates.io
env:
CRATE_NAME: blockchain-cli
Expand All @@ -29,13 +26,35 @@ jobs:
run: |
# Set
git config --global user.email "[email protected]"
git config --global user.name "Slavik Pastushenko"
# Bump the version and create a GitHub release
cargo release --execute --no-confirm patch
git config --global user.name "Chargetrip"
# Get the version number from Cargo.toml
VERSION=$(grep -oP 'version = "\K[^"]+' Cargo.toml)
# Build release
cargo build --release
# Create a GitHub release using the GitHub CLI
gh release create v$VERSION target/package/blockchain-cli-*.crate -t "v$VERSION"
# - name: Install cargo-release
# run: cargo install cargo-release

# - name: Create GitHub release & Publish to crates.io
# env:
# CRATE_NAME: blockchain-cli
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
# run: |
# # Set
# git config --global user.email "[email protected]"
# git config --global user.name "Slavik Pastushenko"

# # Bump the version and create a GitHub release
# cargo release --execute --no-confirm patch

# # Get the version number from Cargo.toml
# VERSION=$(grep -oP 'version = "\K[^"]+' Cargo.toml)

# # Create a GitHub release using the GitHub CLI
# gh release create v$VERSION target/package/blockchain-cli-*.crate -t "v$VERSION"

0 comments on commit 835275d

Please sign in to comment.