Skip to content

Commit

Permalink
Add justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
RealOrangeOne committed Feb 15, 2024
1 parent 1faeb1d commit 9fc4cd9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9fc4cd9

Please sign in to comment.