add publish script
This commit is contained in:
parent
a23e66a9ad
commit
6d492e0990
1 changed files with 24 additions and 0 deletions
24
publish.sh
Normal file
24
publish.sh
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Clean and recreate static output directory
|
||||||
|
rm -rf static
|
||||||
|
mkdir static
|
||||||
|
|
||||||
|
# Copy your report/slides into it
|
||||||
|
cp slides.html static/index.html
|
||||||
|
|
||||||
|
# Optional: copy supporting files if needed
|
||||||
|
# cp -r figures static/
|
||||||
|
# cp -r libs static/
|
||||||
|
|
||||||
|
cd static
|
||||||
|
|
||||||
|
git init
|
||||||
|
git add -A
|
||||||
|
git commit -m "Deploy static site"
|
||||||
|
|
||||||
|
# Push this folder as the gh-pages branch of chmee/kidney
|
||||||
|
git push -f git@github.com:chmee/kidney.git main:gh-pages
|
||||||
|
|
||||||
|
cd -
|
||||||
Loading…
Add table
Add a link
Reference in a new issue