From f9dc99aa090c95a913172a12c6afa58cc6fec9ae Mon Sep 17 00:00:00 2001 From: Ethan Keller Date: Thu, 12 Dec 2024 17:44:27 -0500 Subject: [PATCH] Remove test-docs and always run build-docs --- .github/workflows/build-docs.yml | 4 ++- .github/workflows/test-build.yml | 44 -------------------------------- 2 files changed, 3 insertions(+), 45 deletions(-) delete mode 100644 .github/workflows/test-build.yml diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index cac0f8709..7d082c59b 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -2,6 +2,8 @@ name: Documentation on: push: + branches: + - '**' tags: - "v*.*.*" @@ -31,7 +33,7 @@ jobs: touch _build/html/.nojekyll - name: Archive Artifacts if: startsWith(github.ref, 'refs/tags/v') - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: docs path: Textbook/_build/html/ diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml deleted file mode 100644 index ed8c7e1d8..000000000 --- a/.github/workflows/test-build.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Test - -on: pull_request - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Set up Ruby - uses: actions/setup-ruby@v1 - - name: Install Ruby Dependencies - run: sudo apt-get update --fix-missing && sudo apt install libcurl4-openssl-dev - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: 3 - - name: Install Dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements-dev.txt - gem install html-proofer - - name: Build HTML Docs - working-directory: ./Textbook - run: | - make html - touch _build/html/.nojekyll - - name: Run HTML Proofer and Doctest - run: | - make doctest - htmlproofer _build/html --help --typhoeus-config='{"headers":{"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36"}}' --allow_hash_href --only_4xx --file_ignore "_build/html/search.html" --url-ignore https://rawgit.com/AguaClara/Textbook/test/html/index.html - - name: Test Publish Docs - uses: JamesIves/github-pages-deploy-action@releases/v4 - with: - token: ${{ secrets.ACCESS_TOKEN }} - branch: test # The branch the action should deploy to. - folder: _build/html/ # The folder the action should deploy. - # - name: Test Build LaTeX - # run: make latex - # - name: Test Build PDF - # uses: xu-cheng/latex-action@v2 - # with: - # working_directory: _build/latex - # root_file: AguaClaraTextbook.tex