From 672f02db60859fd05338f89a97b054164416c8c2 Mon Sep 17 00:00:00 2001 From: Niema Moshiri Date: Thu, 4 Apr 2024 19:55:17 -0700 Subject: [PATCH] Restructured GitHub Action --- .github/workflows/deploy.yml | 12 ++++-------- teach_online/requirements.txt | 3 --- 2 files changed, 4 insertions(+), 11 deletions(-) delete mode 100644 teach_online/requirements.txt diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f277f1f..394defc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 && \ @@ -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 @@ -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 \ No newline at end of file + overwrite: true diff --git a/teach_online/requirements.txt b/teach_online/requirements.txt deleted file mode 100644 index 7e821e4..0000000 --- a/teach_online/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -jupyter-book -matplotlib -numpy