Skip to content

Commit

Permalink
Add justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Laeri committed Jun 13, 2023
1 parent 1968cb1 commit 09c5dc8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,21 @@ package:
cp -r $MANPAGES_DIR ./release
cp -r $SHELL_COMPLETIONS_DIR ./release

build_release: pre-release
cargo clean
cargo build --release --target x86_64-unknown-linux-gnu
mkdir ./target/release/full-release
cp -r pkg/assets/man ./target/release/full-release
cp -r pkg/assets/completions ./target/release/full-release
export VERSION=$(just get-crate-version)
export RELEASE_PACKAGE="./target/release/powernotd-${VERSION}-x86_64.tar.gz"
tar -czvf $RELEASE_PACKAGE -C target/release/full-release ./target/release/full-release/
md5sum $RELEASE_PACKAGE > ./target/release/powernotd-${VERSION}-checksum.md5



# publish crate version to private registry
publish +args='': verify-clean-git verify-release-tag-does-not-exist pre-release
publish_crate +args='': verify-clean-git verify-release-tag-does-not-exist pre-release
git push
sleep 0.25
cargo +{{rustc-version}} publish \
Expand Down

0 comments on commit 09c5dc8

Please sign in to comment.