Skip to content

Commit

Permalink
chore: update release workflow 15
Browse files Browse the repository at this point in the history
  • Loading branch information
slavik-pastushenko committed Nov 8, 2023
1 parent bf48e29 commit 336c7d3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 41 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/publish.yml

This file was deleted.

34 changes: 32 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,42 @@ permissions:

on:
push:
tags:
- v[0-9]+.*
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable

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

- name: Publish to crates.io
env:
CRATE_NAME: blockchain-cli
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
# Set config
git config --global user.email "[email protected]"
git config --global user.name "Slavik Pastushenko"
# Release
# cargo release --execute --no-confirm --no-verify patch
cargo release --no-publish --no-confirm --no-verify patch
release:
runs-on: ubuntu-latest
needs: [ publish ]
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "blockchain-cli"
description = "Provides a command-line interface (CLI) for interacting with blockchain"
version = "1.0.5"
version = "1.0.6"
edition = "2021"
license = "MIT"
readme = "README.md"
Expand Down

0 comments on commit 336c7d3

Please sign in to comment.