-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
35 lines (28 loc) · 823 Bytes
/
justfile
File metadata and controls
35 lines (28 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
test:
sbt test
playground-release:
sbt "project playground" fullOptJS
npm run --prefix playground build
playground-js:
npm run --prefix playground dev
playground-scala:
sbt "project playground" "~fastLinkJS"
playground-publish: playground-release
#!/usr/bin/env bash
set -euo pipefail
echo "====> deploying to github"
# checkout the existing gh-pages
rm -rf /tmp/gh-pages
git worktree add -f /tmp/gh-pages gh-pages
rm -rf /tmp/gh-pages/*
# copy the build files to the gh-pages folder
cp -rp {{justfile_directory()}}/playground/dist/* /tmp/gh-pages/
# push our new gh-pages
cd /tmp/gh-pages && \
git add -A && \
git commit -m "deployed on $(date) by ${USER}" && \
git push origin gh-pages
git worktree remove /tmp/gh-pages
pre-commit: test playground-release
clean:
sbt clean