tangled
alpha
login
or
join now
pyrox.dev
/
blog
0
fork
atom
My blog
0
fork
atom
overview
issues
pulls
pipelines
add manual deploy script
pyrox.dev
1 year ago
beb375b4
5130b5f9
verified
This commit was signed with the committer's
known signature
.
pyrox.dev
SSH Key Fingerprint:
SHA256:ihSg8ro3xVhqiuGLMtUGTeMVgmEMlaXvSS4AFyYcM/o=
+27
1 changed file
expand all
collapse all
unified
split
deploy.sh
+27
deploy.sh
···
1
1
+
COMMIT_ID=$(git rev-parse --short HEAD)
2
2
+
3
3
+
echo "Cleaning up /tmp/pages..."
4
4
+
rm -rf /tmp/pages
5
5
+
mkdir -p /tmp/pages
6
6
+
chmod 777 /tmp/pages
7
7
+
8
8
+
echo "Copying built site into /tmp/pages..."
9
9
+
cp -rT ./_site /tmp/pages
10
10
+
rm -rf /tmp/pages/.git
11
11
+
12
12
+
echo "Initializing git repo..."
13
13
+
cd /tmp/pages
14
14
+
git init -b pages /tmp/pages
15
15
+
git config user.name "[BOT] PyroNet Actions"
16
16
+
git config user.email "actions-noreply@pyrox.dev"
17
17
+
18
18
+
echo "Making commit..."
19
19
+
git add --all
20
20
+
git commit -m "Deploying $COMMIT_ID to PyroNet Git"
21
21
+
22
22
+
echo "Pushing to PyroNet Git..."
23
23
+
git remote add origin "https://git.pyrox.dev/pyrox/new-blog.git"
24
24
+
git push --force origin "pages:pages"
25
25
+
26
26
+
echo "Cleaning up tmpdir..."
27
27
+
rm -rf /tmp/pages