-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7b7b6e
commit 835275d
Showing
1 changed file
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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" |