From ebbe62f60d143b0576e50d99bfb733400d37e788 Mon Sep 17 00:00:00 2001 From: Nathan Lambert Date: Mon, 27 May 2024 19:27:18 -0400 Subject: [PATCH 1/4] init --- .../{static.yml => build-and-push.yml} | 2 ++ .github/workflows/test-build.yml | 24 +++++++++++++++++++ .gitignore | 5 +--- 3 files changed, 27 insertions(+), 4 deletions(-) rename .github/workflows/{static.yml => build-and-push.yml} (96%) create mode 100644 .github/workflows/test-build.yml diff --git a/.github/workflows/static.yml b/.github/workflows/build-and-push.yml similarity index 96% rename from .github/workflows/static.yml rename to .github/workflows/build-and-push.yml index e4fbca6..5bdb766 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/build-and-push.yml @@ -31,6 +31,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Build + run: make html - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml new file mode 100644 index 0000000..a516ac2 --- /dev/null +++ b/.github/workflows/test-build.yml @@ -0,0 +1,24 @@ +name: Build Test + +on: + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' # Specify the Python version if needed + + - name: Install dependencies + run: | + pip install -r requirements.txt # Adjust as necessary for your project + + - name: Build the static content + run: make html diff --git a/.gitignore b/.gitignore index bd902b2..e09e0d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,5 @@ # Build files -build/**/*.png -build/docx/ -build/epub/ -build/pdf/ +build/ # Misc *.log From 9d38d56355b51cf7c1919f27cab2911c6bdc53ba Mon Sep 17 00:00:00 2001 From: Nathan Lambert Date: Mon, 27 May 2024 19:29:48 -0400 Subject: [PATCH 2/4] up --- .github/workflows/test-build.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index a516ac2..7732309 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -11,14 +11,5 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' # Specify the Python version if needed - - - name: Install dependencies - run: | - pip install -r requirements.txt # Adjust as necessary for your project - - name: Build the static content run: make html From 02f60a45028c1a932016114889e357c701f48686 Mon Sep 17 00:00:00 2001 From: Nathan Lambert Date: Mon, 27 May 2024 19:33:49 -0400 Subject: [PATCH 3/4] install pandoc --- .github/workflows/test-build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 7732309..d6eb907 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -11,5 +11,9 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Dependencies + run: | + sudo apt-get install -y pandoc + - name: Build the static content run: make html From 2c6f637f56604ca56f963f6f6ab98014bd4d28ce Mon Sep 17 00:00:00 2001 From: Nathan Lambert Date: Mon, 27 May 2024 19:36:42 -0400 Subject: [PATCH 4/4] test --- .github/workflows/test-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index d6eb907..1eb849f 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -14,6 +14,7 @@ jobs: - name: Dependencies run: | sudo apt-get install -y pandoc + sudo apt-get install pandoc-citeproc - name: Build the static content run: make html