Skip to content

Commit 41dfd48

Browse files
committed
setup decrypt key and configure deploy remote
1 parent 09572b6 commit 41dfd48

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ target/
6363
*.swp
6464
*.swo
6565
site/
66+
deploy_key.pem

deploy.sh

+18
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,20 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
6+
echo "Updating remotes..."
7+
git remote add deploy [email protected]:PythonFloripa/pythonfloripa.github.io.git || echo "Remote deploy already exists:"
8+
git remote -v
9+
10+
11+
echo "Set up deploy key..."
12+
openssl aes-256-cbc -K $encrypted_63aef70bd380_key -iv $encrypted_63aef70bd380_iv \
13+
-in deploy_key.pem.enc -out deploy_key.pem -d
14+
chmod 600 deploy_key.pem
15+
eval $(ssh-agent)
16+
ssh-add deploy_key.pem
17+
18+
119
echo "Running mkdocs gh-deploy"
220
mkdocs gh-deploy --verbose --clean --remote-branch master --remote-name deploy

deploy_key.pem.enc

1.64 KB
Binary file not shown.

0 commit comments

Comments
 (0)