From 6aefdb3942def342c37c1fb0a6daf75a137c86ff Mon Sep 17 00:00:00 2001 From: jiayouba233 <72449367+jiayouba233@users.noreply.github.com> Date: Wed, 20 Apr 2022 23:05:34 +0800 Subject: [PATCH] Update build-pdf.yml --- .github/workflows/build-pdf.yml | 35 ++++++++++++--------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-pdf.yml b/.github/workflows/build-pdf.yml index ccba37b..dffe093 100644 --- a/.github/workflows/build-pdf.yml +++ b/.github/workflows/build-pdf.yml @@ -1,30 +1,21 @@ -name: Convert PDF to Markdown - on: push: paths: - - '**.md' + - 'doc/**' + +name: CreatePDFs jobs: - convert_md: + makepdfs: runs-on: ubuntu-latest steps: - - name: Checkout Code - uses: actions/checkout@v2.0.0 + - uses: actions/checkout@v1 + - uses: mkrakowitzer/actions-makepdfs@master + if: github.ref == 'refs/heads/master' + with: + markdown_dir: doc + output_dir: tmp + - uses: actions/upload-artifact@v1 with: - fetch-depth: 1 - - name: Create .pdfs - uses: scottypate/md-to-pdf@v0.1.1 - env: { - # Use this parameter to determine where the generated .pdf(s) will be stored. - PDF_DIR: './pdfs' - } - - name: Create Pull Request - uses: peter-evans/create-pull-request@v1.6.1 - env: - # The token is built in to actions. No config required. - COMMIT_MESSAGE: Add .pdf files. - PULL_REQUEST_TITLE: Add .pdf files. - PULL_REQUEST_BRANCH: pdf-add - PULL_REQUEST_BODY: :wave: Here are the .pdf files you requested. - PULL_REQUEST_REVIEWERS: scottypate + name: platform-architecture-docs + path: tmp