tangled
alpha
login
or
join now
bad-example.com
/
spacedust-utils
6
fork
atom
demos for spacedust
6
fork
atom
overview
issues
pulls
pipelines
gh-pages script maybe
bad-example.com
8 months ago
042f8c10
0817196b
+26
2 changed files
expand all
collapse all
unified
split
atproto-notifications
package.json
gh-pages.sh
+1
atproto-notifications/package.json
···
6
6
"scripts": {
7
7
"dev": "vite --host 127.0.0.1",
8
8
"build": "tsc -b && vite build",
9
9
+
"just-build": "VITE_PUSH_PUBKEY=BDZZicf6KaHoH6EI9OETLO3G9M4e6mKQDRJDcj_XUUxvdsnz08ne-URkk_ToqpwWgrRqXIBd0LJ_w8bP-R5xMKA vite build",
9
10
"lint": "eslint .",
10
11
"preview": "vite preview"
11
12
},
+25
gh-pages.sh
···
1
1
+
#!/bin/bash
2
2
+
set -euo pipefail
3
3
+
set +x
4
4
+
5
5
+
git switch gh-pages
6
6
+
git merge --no-ff main -m 'merge main'
7
7
+
8
8
+
cd atproto-notifications
9
9
+
npm run just-build
10
10
+
cd ..
11
11
+
12
12
+
cp docs/CNAME dist/
13
13
+
rm -fr docs
14
14
+
mv atproto-notifications/dist docs
15
15
+
16
16
+
mkpage () {
17
17
+
local page=$1
18
18
+
mkdir -p "docs${page}"
19
19
+
cp docs/index.html "docs${page}/index.html"
20
20
+
}
21
21
+
22
22
+
git add docs
23
23
+
git commit -m 'update build'
24
24
+
git push
25
25
+
git switch -