Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
aoymt committed Dec 24, 2023
1 parent 6a68443 commit 5e84ec5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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}"
Expand Down

0 comments on commit 5e84ec5

Please sign in to comment.