Skip to content

Commit

Permalink
fixing build tz
Browse files Browse the repository at this point in the history
  • Loading branch information
aeturrell committed Jan 1, 2025
1 parent 43a0a61 commit 6683678
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: build

# permissions:
# contents: write
# pages: write

on:
push:
branches:
- build-book-action


jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: install mamba
uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
init-shell: >-
bash
cache-environment: true
post-cleanup: 'all'

- name: set timezone
run: |
TZ="Europe/London" &&
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime &&
echo $TZ > /etc/timezone
- name: install linux deps
run: |
sudo apt-get -y install openssl graphviz nano texlive graphviz-dev unzip
- name: install special fonts
run: |
mkdir -p /usr/share/fonts/truetype/ &&
wget https://www.wfonts.com/download/data/2015/10/08/varta/varta.zip &&
unzip varta.zip &&
install -m644 *.ttf /usr/share/fonts/truetype/ &&
rm *.ttf
rm varta.zip
- name: install text models
run: |
python3 -m spacy download en_core_web_sm &&
python3 -m nltk.downloader all
- name: special fix for todoify
run: |
sed -i '90 s/^/#/' /opt/conda/envs/codeforecon/lib/python3.10/site-packages/mdit_py_plugins/tasklists/__init__.py
- name: build the book
run: |
jupyter-book build . --verbose
- name: success
run: |
echo "success!"

0 comments on commit 6683678

Please sign in to comment.