Skip to content

Commit

Permalink
Use requirements.txt in ci build (#143)
Browse files Browse the repository at this point in the history
Automate the build, as currently if any requirements change they wouldnt be included in the build without updating the ci.yaml too

Co-authored-by: Gabriel Seltzer <[email protected]>
  • Loading branch information
derbyshire10 and gabeseltzer authored Dec 9, 2023
1 parent 19ad223 commit 38eb946
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: ci
name: ci
on:
push:
branches:
branches:
- main
permissions:
contents: write
Expand All @@ -13,10 +13,8 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install mkdocs
- run: pip install mkdocs-material
- run: pip install mkdocs-glightbox
- run: pip install -r requirements.txt
- run: sudo apt-get install imagemagick pngquant
- run: find . -name '*.png' -execdir bash -c 'mogrify -resize 750x "$1"' - {} \;
- run: find . -name '*.png' -execdir bash -c 'pngquant "$1" --ext .png --force' - {} \;
- run: mkdocs gh-deploy --force
- run: mkdocs gh-deploy --force

0 comments on commit 38eb946

Please sign in to comment.