Skip to content

Commit

Permalink
chore: update release workflow 3
Browse files Browse the repository at this point in the history
  • Loading branch information
slavik-pastushenko committed Nov 8, 2023
1 parent 95742de commit ada14d6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,19 @@ jobs:
with:
rust-version: stable

- name: Set up GitHub CLI
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Configure GitHub CLI with the provided token
gh config set -h github.com token $GH_TOKEN
- name: Install cargo-release
run: cargo install cargo-release

- name: Bump version and create GitHub release
env:
CRATE_NAME: blockchain-cli
run: |
# Bump the version and create a GitHub release
cargo release patch
Expand All @@ -31,10 +40,8 @@ jobs:
# Create a GitHub release using the GitHub CLI
gh release create "v$VERSION" target/package/blockchain-cli-*.crate -t "v$VERSION"
env:
CRATE_NAME: blockchain-cli
- name: Publish to crates.io
run: cargo publish
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: cargo publish

0 comments on commit ada14d6

Please sign in to comment.