Skip to content

Commit

Permalink
Merge pull request #1 from navidys/publish_crate
Browse files Browse the repository at this point in the history
Makefile update
  • Loading branch information
navidys authored Jun 30, 2024
2 parents 0f42f8e + b551660 commit 4a5a18d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: validation
on:
pull_request:
push:
branches: [ main ]

Expand Down
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ codespell: ## Run codespell
@echo "running codespell"
@codespell -S ./target,./targets -L crate

#=================================================
# Publish crate
#=================================================

.PHONY: crate-publish
crate-publish: ## Publish crate
@if [ "v$(CRATE_VERSION)" != "$(GIT_TAG)" ]; then\
echo "Git tag is not equivalent to the version set in Cargo.toml. Please checkout the correct tag";\
exit 1;\
fi
@echo "It is expected that you have already done 'cargo login' before running this command. If not command may fail later"
$(CARGO) publish --dry-run
$(CARGO) publish


.PHONY: clean
clean: ## Cleanup
Expand Down

0 comments on commit 4a5a18d

Please sign in to comment.