Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.2.3 #27

Merged
merged 3 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "present"
version = "0.2.2"
version = "0.2.3"
description = "Interpolate the standard output of arbitrary shell scripts into your markdown files"
authors = ["Liam <liam@scalzulli.com>"]
license = "CC0-1.0"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ Options:
--interactive Interactively present markdown documents.
--pretty Pretty print documents to the terminal.
--remove Remove commands within markdown documents.
-h, --help Print help information
-V, --version Print version information
-h, --help Print help
-V, --version Print version
```

### Library
Expand All @@ -53,7 +53,7 @@ Options:
section in `Cargo.toml`:

```present ./bin/get_version
present = "0.2.2"
present = "0.2.3"
```

With `present`, you can create a `File` struct by pointing it to a path. This
Expand Down
Empty file modified bin/package
100644 → 100755
Empty file.
23 changes: 23 additions & 0 deletions bin/publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

set -euo pipefail

rm -rf tmp/release

git clone https://github.com/terror/present.git tmp/release

VERSION=$(sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/\1/p' Cargo.toml | head -1)
echo "Releasing $VERSION..."
cd tmp/release

if git rev-parse "$VERSION" >/dev/null 2>&1; then
echo "Tag $VERSION already exists. Skipping tag creation."
else
git tag -a "$VERSION" -m "Release $VERSION"
git push origin "$VERSION"
fi

cargo publish

cd ../..
rm -rf tmp/release
12 changes: 1 addition & 11 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,7 @@ forbid:
./bin/forbid

publish:
#!/usr/bin/env bash
set -euxo pipefail
rm -rf tmp/release
git clone https://github.com/terror/present.git tmp/release
VERSION=`sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/\1/p' Cargo.toml | head -1`
cd tmp/release
git tag -a $VERSION -m "Release $VERSION"
git push origin $VERSION
cargo publish
cd ../..
rm -rf tmp/release
./bin/publish

run *args:
cargo run -- {{args}}
Expand Down
Loading