Skip to content

Commit

Permalink
電子版の頒布準備
Browse files Browse the repository at this point in the history
  • Loading branch information
huideyeren committed Jan 1, 2024
1 parent 52f94c2 commit 13b7ac3
Showing 1 changed file with 48 additions and 21 deletions.
69 changes: 48 additions & 21 deletions .github/workflows/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,44 @@ jobs:
npx textlint -f checkstyle chapter/*.re wiki/*.md README.md \
| reviewdog -f=checkstyle -name="textlint" -diff="git diff ${{ github.event.pull_request.base.ref }}" -reporter=github-pr-review -level="error"
pdf:
# pdf:
# needs: reviewdog-github-check
# name: Make PDF for print
# runs-on: ubuntu-latest
# container:
# image: huideyeren/review
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# - uses: actions/checkout@v2
# - name: Install gems.
# run: bundle install
# - name: Copy plantuml.
# run: cp /java/plantuml.jar .
# - name: Check tools
# run: dot -V && blockdiag --version && java -jar plantuml.jar -version
# - name: convert PlantUML
# run: pwd | bash ./plantuml.sh >> .plantuml.log
# - name: Show .plantuml.log
# run: cat .plantuml.log
# - name: Convert SVG to PDF
# run: pwd | python3 svg.py >> .svg.log
# - name: Show .svg.log
# run: cat .svg.log
# - name: Grayscaling images.
# run: pwd | python3 grayscaling.py >> .grayscaling.log
# - name: Show .grayscaling.log
# run: cat .grayscaling.log
# - name: Build PDF.
# run: bundle exec rake clean pdf
# - name: Upload artifact.
# uses: actions/upload-artifact@v2
# with:
# name: LouisaTechVol1Rev2.pdf
# path: LouisaTechVol1Rev2.pdf

pdf-download:
needs: reviewdog-github-check
name: Make PDF for print
name: Make PDF for eBook
runs-on: ubuntu-latest
container:
image: huideyeren/review
Expand All @@ -82,27 +117,23 @@ jobs:
run: pwd | python3 svg.py >> .svg.log
- name: Show .svg.log
run: cat .svg.log
- name: Grayscaling images.
run: pwd | python3 grayscaling.py >> .grayscaling.log
- name: Show .grayscaling.log
run: cat .grayscaling.log
- name: Build PDF.
run: bundle exec rake clean pdf
- name: Upload artifact.
uses: actions/upload-artifact@v2
with:
name: LouisaTechVol1Rev2-print.pdf
name: LouisaTechVol1Rev2.pdf
path: LouisaTechVol1Rev2.pdf

pdf-download:
needs: reviewdog-github-check
name: Make PDF for eBook
epub:
# needs: reviewdog-github-check
name: Make EPUB
runs-on: ubuntu-latest
container:
image: huideyeren/review
image: ghcr.io/huideyeren/review-docker:main
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install gems.
run: bundle install
- name: Copy plantuml.
Expand All @@ -113,14 +144,10 @@ jobs:
run: pwd | bash ./plantuml.sh >> .plantuml.log
- name: Show .plantuml.log
run: cat .plantuml.log
- name: Convert SVG to PDF
run: pwd | python3 svg.py >> .svg.log
- name: Show .svg.log
run: cat .svg.log
- name: Build PDF.
run: bundle exec rake clean pdf
- name: Build EPUB.
run: REVIEW_CONFIG_FILE=config-epub.yml REVIEW_CATALOG_FILE=catalog-download.yml bundle exec rake epub
- name: Upload artifact.
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: LouisaTechVol1Rev2-download.pdf
path: LouisaTechVol1Rev2.pdf
name: LouisaTechVol1Rev2.epub
path: LouisaTechVol1Rev2.epub

0 comments on commit 13b7ac3

Please sign in to comment.