File: ghsite.sh

package info (click to toggle)
jsofa 0~20210512-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 2,092 kB
  • sloc: java: 16,603; xml: 498; sh: 16; makefile: 3
file content (10 lines) | stat: -rwxr-xr-x 436 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
tmpdir=$(mktemp -d)
version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
git clone git@github.com:Javastro/jsofa.git --branch gh-pages --single-branch $tmpdir/ghpages
mvn clean site site:stage -DstagingDirectory=$tmpdir/site
rsync -avz $tmpdir/site/ $tmpdir/ghpages/
git -C $tmpdir/ghpages add .
git -C $tmpdir/ghpages commit  -m "new jsofa site for $version"
git -C $tmpdir/ghpages push
rm -rf $tmpdir