mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-12-21 16:35:59 +00:00
Add justfile
This commit is contained in:
parent
1faeb1dfe5
commit
9fc4cd919f
2 changed files with 19 additions and 3 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
@ -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
15
justfile
Normal 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
|
Loading…
Reference in a new issue