diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 4314eb2..fc840b5 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -11,7 +11,7 @@ on: jobs: deploy: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 if: github.repository == 'issp-center-dev/Moller' steps: - name: Inject slug/short variables @@ -28,6 +28,11 @@ jobs: ref: gh-pages path: gh-pages + - name: Set up LaTeX + run: | + sudo apt-get update + sudo apt-get install -y texlive-lang-japanese texlive-lang-cjk texlive-fonts-recommended texlive-fonts-extra latexmk + - name: Set up Python uses: actions/setup-python@v4 with: @@ -43,6 +48,7 @@ jobs: for lang in ja en; do cd ${GITHUB_WORKSPACE}/main/docs/${lang} make html + make latexpdf done - name: Deploy Configuration @@ -63,6 +69,7 @@ jobs: rm -rf "gh-pages/manual/${TARGET_NAME}/${lang}" mkdir -p "gh-pages/manual/${TARGET_NAME}/${lang}" cp -r "main/docs/${lang}/build/html" "gh-pages/manual/${TARGET_NAME}/${lang}" + cp "main/docs/${lang}/build/latex/moller-usersguide.pdf" "gh-pages/manual/${TARGET_NAME}/${lang}" done cd gh-pages git config --local user.name "${GIT_USER}"