From c2880a8f872ac538d0a0489f42fbe54f90977d46 Mon Sep 17 00:00:00 2001 From: milancurcic Date: Mon, 19 Aug 2024 21:28:51 -0400 Subject: [PATCH 1/5] CI script to build the pdf --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..bfb086d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up TeX Live + run: | + sudo apt update + sudo apt install -y texlive-base + + - name: Compile LaTeX document + run: | + make + + - name: Upload PDF as artifact + uses: actions/upload-artifact@v2 + with: + name: notes-pdf + path: notes.pdf + + - name: Deploy PDF to GitHub Pages + if: github.ref == 'refs/heads/main' + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./ + publish_branch: gh-pages + destination_dir: pdf \ No newline at end of file From f48e04909a9837baa692a794975438975c3a8f1a Mon Sep 17 00:00:00 2001 From: milancurcic Date: Mon, 19 Aug 2024 21:31:51 -0400 Subject: [PATCH 2/5] texlive-full --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bfb086d..35b06a2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: - name: Set up TeX Live run: | sudo apt update - sudo apt install -y texlive-base + sudo apt install -y texlive-full - name: Compile LaTeX document run: | From 06c28a302d597a034fff3a93f5d4a836328e7d90 Mon Sep 17 00:00:00 2001 From: milancurcic Date: Mon, 19 Aug 2024 21:35:28 -0400 Subject: [PATCH 3/5] Fewer texlive packages; note on WIP in README --- .github/workflows/build.yml | 2 +- README.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 35b06a2..61e61e3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: - name: Set up TeX Live run: | sudo apt update - sudo apt install -y texlive-full + sudo apt install -y texlive-latex-base - name: Compile LaTeX document run: | diff --git a/README.md b/README.md index 818404b..8eebb6d 100644 --- a/README.md +++ b/README.md @@ -4,5 +4,8 @@ Notes for Fluid Mechanics (OCE 675) taught at the Rosenstiel School. See the [Syllabus](syllabus.md) for the Fall 2024 course information. +These notes are a work in progress as the lectures progress during the semester. +They will be near complete as we approach the final exam. + All content in this repo is licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/). \ No newline at end of file From 3d1f9c96a29401c3ae4dab68fe477435c7007a26 Mon Sep 17 00:00:00 2001 From: milancurcic Date: Mon, 19 Aug 2024 21:49:07 -0400 Subject: [PATCH 4/5] Do not try to publish --- .github/workflows/build.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 61e61e3..c5f0a3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,16 +27,7 @@ jobs: make - name: Upload PDF as artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: notes-pdf - path: notes.pdf - - - name: Deploy PDF to GitHub Pages - if: github.ref == 'refs/heads/main' - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./ - publish_branch: gh-pages - destination_dir: pdf \ No newline at end of file + name: fluid-mechanics-notes + path: notes.pdf \ No newline at end of file From a496b41c81c6712ad92dbb807764d2cb9625c8fd Mon Sep 17 00:00:00 2001 From: milancurcic Date: Mon, 19 Aug 2024 21:58:33 -0400 Subject: [PATCH 5/5] checkout v4 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c5f0a3e..fac4f4f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up TeX Live run: |