diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index cac0f8709..a6d9b17af 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -2,6 +2,8 @@ name: Documentation on: push: + branches: + - '**' tags: - "v*.*.*" @@ -9,18 +11,18 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v2 with: python-version: '3.10' - name: Setup System Dependencies run: | - apt-get update - apt-get install -y tzdata rsync - ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime - dpkg-reconfigure -f noninteractive tzdata - - name: Install Dependencies + sudo apt-get update + sudo apt-get install -y tzdata rsync + sudo ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime + sudo dpkg-reconfigure -f noninteractive tzdata + - name: Install Python Dependencies run: | python -m pip install --upgrade pip pip install -r requirements-dev.txt @@ -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 6a9522e5d..000000000 --- a/.github/workflows/test-build.yml +++ /dev/null @@ -1,43 +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.10 - - name: Install Dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements-dev.txt - gem install html-proofer - - name: Build HTML Docs - 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 diff --git a/README.md b/README.md index dd60b24f9..861471710 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,4 @@ Pushing a tag will kick off the automated release workflow which builds the PDF # Running locally We use [act](https://github.com/nektos/act) to run the workflow locally. After installing act, run `act --container-architecture linux/amd64` in the root directory to see a list of workflows that can be run locally. + diff --git a/Textbook/.gitignore b/Textbook/.gitignore index 5c0bbafe2..29cde831f 100644 --- a/Textbook/.gitignore +++ b/Textbook/.gitignore @@ -5,4 +5,5 @@ _build/ .idea/ .DS_store -.history \ No newline at end of file +.history +act.exe \ No newline at end of file