Skip to content

Commit 3deaa83

Browse files
committed
Updated deploy script
1 parent 2e64d7f commit 3deaa83

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ composer.lock
55
*.sublime-project
66
*.sublime-workspace
77
/build
8-
/env
8+
env
99
site

docs/deploy.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
#!/bin/sh
2-
pip install -r docs/requirements.txt
3-
cd docs/php-form
4-
mkdocs build
5-
tar -zcvf phpform.tar.gz -C site .
6-
curl -X POST -H "Content-Type: multipart/form-data" -H "Api-Key: ${1}" -F "archive=@phpform.tar.gz" https://alexandriadocs.io/api/v1/projects/upload/
7-
rm phpform.tar.gz
1+
#!/bin/bash
2+
3+
cd docs/
4+
source env/bin/activate && \
5+
pip install -r requirements.txt && \
6+
cd php-form && \
7+
mkdocs build && \
8+
tar -zcvf phpform.tar.gz -C site . && \
9+
curl -X POST -H "Content-Type: multipart/form-data" -H "Api-Key: ${1}" -F "archive=@phpform.tar.gz" https://alexandriadocs.io/api/v1/projects/upload/ && \
10+
rm phpform.tar.gz

0 commit comments

Comments
 (0)