forked from Neoteroi/BlackSheep-Docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 824 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.PHONY: build fixlinks
include .env
build:
mkdocs build
./fixlinks.sh
rm -rf .build
mkdir -p .build/blacksheep
mv site/* .build/blacksheep
echo "Ready to publish"
build-v1:
mkdocs build
VERSION="v1" ./fixlinks.sh
rm -rf .build
mkdir -p .build/blacksheep/v1
mv site/* .build/blacksheep/v1
echo "Ready to publish"
# require env variables
publish-dev:
PYAZ_ACCOUNT_KEY=${DEV_ACCOUNT_KEY} pyazblob upload --path .build/ --account-name "neoteroideveuwstacc" -cn "\$$web" -r -f
publish-prod:
PYAZ_ACCOUNT_KEY=${PROD_EUW_ACCOUNT_KEY} pyazblob upload --path .build/ --account-name "neoteroieuwstacc" -cn "\$$web" -r -f
PYAZ_ACCOUNT_KEY=${PROD_USE_ACCOUNT_KEY} pyazblob upload --path .build/ --account-name "neoteroieusstacc" -cn "\$$web" -r -f
fixlinks:
./fixlinks.sh
clean:
rm -rf site/
rm -rf .build/