at main 511 B view raw
1#!/bin/bash 2set -euo pipefail 3set +x 4 5git switch gh-pages 6git merge --no-ff main -m 'merge main' 7 8cd atproto-notifications 9export VITE_NOTIFICATIONS_HOST=https://notifications-demo-api.microcosm.blue 10npm run just-build 11cd .. 12 13cp docs/CNAME atproto-notifications/dist/ 14rm -fr docs 15mv atproto-notifications/dist docs 16 17mkpage () { 18 local page=$1 19 mkdir -p "docs${page}" 20 cp docs/index.html "docs${page}/index.html" 21} 22 23mkpage /admin 24mkpage /early 25 26git add docs 27git commit -m 'update build' 28git push 29git switch -