mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-12-22 08: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'
|
python-version: '3.11'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
|
||||||
- run: pip install -r requirements.txt
|
- uses: taiki-e/install-action@just
|
||||||
|
|
||||||
|
- run: just setup
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v1
|
uses: actions/configure-pages@v1
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: just build
|
||||||
mkdocs build -v
|
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v1
|
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