Skip to content

Commit

Permalink
Release 0.1.1 #23
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Jan 7, 2024
1 parent 05d63e2 commit dac615e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
31 changes: 31 additions & 0 deletions Makesurefile
@@ -1,6 +1,7 @@
# vim: syntax=bash
@options timing

@define NEXT_VERSION '0.1.1'
@define TUSH_REPO 'https://github.com/adolfopa/tush'
@define GOAWK_VERSION '1.24.0'
@define GOAWK "./soft/goawk$GOAWK_VERSION"
Expand Down Expand Up @@ -224,3 +225,33 @@
echo "coverage: $coverage"
awk -v coverage="$coverage" '{ gsub(/\$COVERAGE/,coverage) } 1' coverage.tpl.svg > coverage.svg
rm "$html"

@goal release_prepated
@doc 'prepares coverage badge & README'
@depends_on coverage_badge_updated
@depends_on update_readme

@goal gh_release
@doc 'publish Github release (draft)'

fail () {
echo >&2 "$@"
exit 1
}

releaseTag="v$NEXT_VERSION"
echo
echo "Will publish a draft release for $releaseTag ..."
echo

notesStr="[Issues included](https://github.com/xonixx/fhtagn/issues?q=is%3Aclosed+milestone%3A${NEXT_VERSION})"

echo "Notes: $notesStr"

gh release create "$releaseTag" \
--title "$releaseTag" \
--notes "$notesStr" \
--draft

echo "Please don't forget to open the release draft, edit it as needed and PUBLISH!"

6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -40,7 +40,7 @@ This will stop on the first error found.
Example:
```
$ ./fhtagn.awk tests/1.tush tests/2.tush tests/3.tush
tests/2.tush:10: $ echo "hello world"; echo "error msg" >&2; exit 7
tests/2.tush:12: $ echo "hello world"; echo "error msg" >&2; exit 7
--- expected
+++ actual
@@ -1,4 +1,4 @@
Expand All @@ -66,7 +66,7 @@ Useful for running in CI.
Example:
```
$ ALL=1 ./fhtagn.awk tests/1.tush tests/2.tush tests/3.tush
tests/2.tush:10: $ echo "hello world"; echo "error msg" >&2; exit 7
tests/2.tush:12: $ echo "hello world"; echo "error msg" >&2; exit 7
--- expected
+++ actual
@@ -1,4 +1,4 @@
Expand All @@ -76,7 +76,7 @@ tests/2.tush:10: $ echo "hello world"; echo "error msg" >&2; exit 7
+@ error msg
+? 7
tests/3.tush:4: $ echo bbb
tests/3.tush:7: $ echo bbb
--- expected
+++ actual
@@ -1,2 +1,2 @@
Expand Down

0 comments on commit dac615e

Please sign in to comment.