Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
futabooo committed Feb 11, 2023
1 parent f4754b7 commit c03c627
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create_pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
./jp/curriculum-vitae.pdf
./en/curriculum-vitae.pdf
curriculum-vitae-jp.pdf
curriculum-vitae-en.pdf
6 changes: 5 additions & 1 deletion md2pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ var markdownpdf = require("markdown-pdf");

var mdDocs = ["./jp/README.md", "./en/README.md"],
pdfDocs = mdDocs.map(function (d) {
return d.replace("README.md", "curriculum-vitae.pdf");
if (d.includes("jp")) {
return "curriculum-vitae-jp.pdf";
} else {
return "curriculum-vitae-en.pdf";
}
});

markdownpdf({ cssPath: "./pdfstyle.css" })
Expand Down

0 comments on commit c03c627

Please sign in to comment.