This repository has been archived by the owner on Sep 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(scripts): introduce update-readme.sh (#53)
* feat(scripts): introduce update-readme.sh * ci(release): test secrets * ci(release): use inline token in cargo publish * ci(release): re-enable realease on pr for testing * ci(release): fix the naming of secret * bumps(v0.1.4): fix build.rs for docs.rs
- Loading branch information
Showing
10 changed files
with
101 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "gear-program" | ||
version = "0.1.3" | ||
version = "0.1.4" | ||
authors = ["clearloop <[email protected]>"] | ||
edition = "2021" | ||
description = "gear program cli" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
# | ||
# Inject `README.md` into `src/lib.rs` | ||
readonly ROOT_DIR="$(cd "$(dirname "$0")"/.. && pwd)" | ||
readonly README="${ROOT_DIR}/README.md" | ||
readonly LIB_RS="${ROOT_DIR}/src/lib.rs" | ||
|
||
######################################### | ||
# Conact `README.md` and `src/lib.rs` | ||
############################################ | ||
function main() { | ||
readme=$(cat ${README} | sed 's/^/\/\/\!/' | sed 's/\!\(\S\)/\! \1/') | ||
lib_rs=$(cat ${LIB_RS} | sed '/\/\/\!/c\') | ||
echo -e "${readme}\n${lib_rs}" > "${LIB_RS}" | ||
} | ||
|
||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters