Skip to content

Commit

Permalink
pandoc周りのスクリプトを変更
Browse files Browse the repository at this point in the history
  • Loading branch information
puripuri2100 committed Mar 29, 2024
1 parent 1847aa9 commit 9512dd9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/articles_branch_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ jobs:
run: |
cd ${{ steps.extract_branch.outputs.branch }}
if [ -f ./main.md ]; then
if [ ! -f ./main.tex ]; then
echo "exist=true" >> $GITHUB_OUTPUT
fi
echo "exist=true" >> $GITHUB_OUTPUT
fi
id: main_md

Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/master_branch_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,7 @@ jobs:

# 事前にarticlesフォルダ内のmarkdownファイルに対してpandocを実行する
- name: convert markdown to latex
run: |
for filepath in $PWD/articles/*; do
cd $filepath
if [ -f ./main.md ]; then
if [ ! -f ./main.tex ]; then
echo $filepath
make pandoc
fi
fi
done
run: ./scripts/all_pandoc.sh

- name: build master branch
run: |
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ version: '3.4'
services:
article_build:
image: ghcr.io/word-coins/latex-build:latest
command: "/bin/sh -c 'fc-cache && WORD_FONT=sourcehan-jp make'"
command: "/bin/sh -c 'fc-cache && ./scripts/all_pandoc.sh && WORD_FONT=sourcehan-jp make'"
volumes:
- .:/workdir
7 changes: 7 additions & 0 deletions scripts/all_pandoc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
for filepath in $PWD/articles/*; do
cd $filepath
if [ -f ./main.md ]; then
echo $filepath
make pandoc
fi
done

0 comments on commit 9512dd9

Please sign in to comment.