1
Fork 0
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-12-21 16:35:59 +00:00

Add justfile

This commit is contained in:
Jake Howard 2024-02-15 20:46:46 +00:00 committed by Jake Howard
parent 1faeb1dfe5
commit 9fc4cd919f
2 changed files with 19 additions and 3 deletions

View file

@ -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

15
justfile Normal file
View file

@ -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