File: publish.sh

package info (click to toggle)
rust-clio 0.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 280 kB
  • sloc: sh: 20; makefile: 2
file content (13 lines) | stat: -rwxr-xr-x 210 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
set -euo pipefail

dir=$(dirname $0)

$dir/actions.sh

git push

cargo publish
v=$(sed -nr 's/^version = "([0-9.]+)"$/\1/p' Cargo.toml)
git tag -a "v$v" -m "Release version $v";
git push origin v$v