Skip to content

Commit

Permalink
Restructured GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
niemasd committed Apr 5, 2024
1 parent c12f52b commit 672f02d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install -r teach_online/requirements.txt && \
sudo apt-get install -y texlive-fonts-extra texlive-latex-extra texlive-xetex latexmk
sudo apt-get update && sudo apt-get upgrade -y && \
sudo apt-get install -y latexmk python3-pip texlive-fonts-extra texlive-latex-extra texlive-xetex && \
sudo -H pip3 install jupyter-book
- name: Build Book
run: |
jupyter-book build teach_online && \
Expand All @@ -48,7 +45,6 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: 'teach_online/_build/html'
- name: Deploy to GitHub Pages
id: deployment
Expand All @@ -70,4 +66,4 @@ jobs:
file: teach_online/_build/latex/book.pdf
asset_name: How-to-Teach-Online.pdf
tag: ${{ steps.tag.outputs.release_tag }}
overwrite: true
overwrite: true
3 changes: 0 additions & 3 deletions teach_online/requirements.txt

This file was deleted.

0 comments on commit 672f02d

Please sign in to comment.