-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.STATIC
More file actions
23 lines (18 loc) · 848 Bytes
/
Makefile.STATIC
File metadata and controls
23 lines (18 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PUBLIC_URL = https://$(GH_TOKEN)@github.com/paperhands/ui.git
public: setup-git
git clone -b generated $(PUBLIC_URL) public
public-copy: public
cp -f static/index.html public/index.html
cp -f static/favicon.png public/favicon.png
cp -f static/_redirects public/_redirects
cp -f target/scala-2.13/scalajs-bundler/main/paperhands-ui-opt-bundle.js public/js/
cp -f target/scala-2.13/scalajs-bundler/main/paperhands-ui-opt-bundle.js.map public/js/
setup-git:
mkdir -p /root/.ssh
ssh-keyscan -t rsa github.com >> /root/.ssh/known_hosts
git config --global user.email "$(GIT_EMAIL)"
git config --global user.name "$(GIT_NAME)"
public-commit: setup-git public
cd public && git add . && (git commit -a -m "Site updated at $(shell date)" || echo "Nothing to commit") && cd ..
public-push: setup-git public
cd public && git push && cd ..