diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75388fc..711a70a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,14 +35,15 @@ jobs: python-version: '3.11' cache: 'pip' - - run: pip install -r requirements.txt + - uses: taiki-e/install-action@just + + - run: just setup - name: Setup Pages uses: actions/configure-pages@v1 - name: Build - run: | - mkdocs build -v + run: just build - name: Upload artifact uses: actions/upload-pages-artifact@v1 diff --git a/justfile b/justfile new file mode 100644 index 0000000..6a55780 --- /dev/null +++ b/justfile @@ -0,0 +1,15 @@ +export PATH := "./env/bin:" + env_var('PATH') + +# Recipes +@default: + just --list + +setup: + python -m venv env + env/bin/pip install -r requirements.txt + +@start: + mkdocs serve + +@build: + mkdocs build -v