Update statistics of translation #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs builds | |
on: | |
push: | |
paths-ignore: | |
- 'locale/**' | |
pull_request: | |
paths-ignore: | |
- 'locale/**' | |
permissions: # added using https://github.com/step-security/secure-repo | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
format: [html, pdf] | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- name: Check out repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1 | |
with: | |
python-version: 3.9 | |
- name: Install Requirements | |
run: | | |
if [[ ${{ matrix.format }} != "html" ]]; then | |
sudo apt-get update && sudo apt-get install -y texlive-xetex fonts-freefont-otf | |
fi | |
python -m pip install --upgrade pip | |
pip install -r REQUIREMENTS.txt | |
- name: Build English ${{ matrix.format }} documentation | |
run: | | |
make ${{ matrix.format }} | |
- name: Upload ${{ matrix.format }} build artifact | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 | |
with: | |
name: ${{ matrix.format }} build | |
path: build/${{ matrix.format }} | |
retention-days: 15 |