Skip to content

Commit

Permalink
Allow publishing arbitrary revisions with publish recipe (ordinals#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Jan 20, 2023
1 parent a5c4be4 commit 5144643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ rebuild-ord-dev-database: && update-ord-dev
journalctl --unit ord-dev --rotate
journalctl --unit ord-dev --vacuum-time 1s

# publish current GitHub master branch
publish:
publish revision='master':
#!/usr/bin/env bash
set -euxo pipefail
rm -rf tmp/release
git clone [email protected]:casey/ord.git tmp/release
cd tmp/release
git checkout {{ revision }}
VERSION=`sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/\1/p' Cargo.toml | head -1`
git tag -a $VERSION -m "Release $VERSION"
git push origin $VERSION
Expand Down

0 comments on commit 5144643

Please sign in to comment.