Skip to content
This repository was archived by the owner on Apr 16, 2022. It is now read-only.

Commit 1830c5e

Browse files
committed
ci(netlify): install Poetry on Netlify
1 parent 0d3b9f4 commit 1830c5e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

build.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
#!/bin/bash
22

3+
if [ -z "$NETLIFY" ]
4+
echo "Running Netlify specific setup"
5+
restore_home_cache ".cache" "pip cache"
6+
restore_cwd_cache '.venv' 'python virtualenv'
7+
pip3 install -q poetry
8+
poetry config settings.virtualenvs.in-project true
9+
poetry install
10+
then
11+
echo "Not running in Netlify"
12+
fi
13+
314
echo "Cloning bot repository"
415
git clone https://github.com/dice-discord/bot.git --depth 1
516
cd bot
@@ -14,4 +25,6 @@ yarn docs
1425
cp -r tsc_output/command_docs ../docs/commands
1526
echo "Building documentation"
1627
cd ..
17-
mkdocs build
28+
potry run mkdocs build
29+
30+
mv ./.yarnrc.yml.tmp ./.yarnrc.yml

0 commit comments

Comments
 (0)