Add bin and edit workflow
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s

This commit is contained in:
2026-09-16 13:11:16 -06:00
parent c8ac4fcae5
commit 4cee170d66
17576 changed files with 895740 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
set -e
bundle install --quiet "$@"
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Usage: script/console
# Starts an IRB console with this library loaded.
gemspec="$(ls *.gemspec | head -1)"
exec bundle exec irb -r "${gemspec%.*}"
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Usage: script/gem
# Updates the gemspec and builds a new gem in the pkg directory.
mkdir -p pkg
gem build *.gemspec
mv *.gem pkg
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Usage: script/release
# Build the package, tag a commit, push it to origin, and then release the
# package publicly.
set -e
version="$(script/package | grep Version: | awk '{print $2}')"
[ -n "$version" ] || exit 1
git commit --allow-empty -a -m "Release $version"
git tag "v$version"
git push origin
git push origin "v$version"
gem push pkg/*-${version}.gem
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Usage: script/test
# Runs the library's test suite.
script/bootstrap
bundle exec rake test